contrib/python3-pycparser/Pkgfile
2020-03-05 19:27:49 +11:00

22 lines
513 B
Plaintext

# Description: C parser and AST generator written in Python.
# URL: https://github.com/eliben/pycparser
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-setuptools
name=python3-pycparser
version=2.20
release=1
source=(https://github.com/eliben/${name#*-*}/archive/release_v$version.tar.gz)
build() {
cd ${name#*-}-release_v$version
/usr/bin/python3 setup.py build
cd pycparser
/usr/bin/python3 _build_tables.py
cd -
/usr/bin/python3 setup.py install --root=$PKG --optimize=1
}