2019-05-21 22:22:12 +10:00
|
|
|
# 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
|
2020-03-05 19:23:34 +11:00
|
|
|
version=2.20
|
2019-05-21 22:22:12 +10:00
|
|
|
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
|
|
|
|
}
|