2021-04-12 23:52:55 +10:00
|
|
|
# Description: C parser and AST generator written in Python.
|
2021-06-16 08:45:52 +00:00
|
|
|
# URL: https://pypi.org/project/pycparser/
|
2021-04-12 23:52:55 +10:00
|
|
|
# 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
|
|
|
|
}
|