22 lines
513 B
Plaintext
22 lines
513 B
Plaintext
# Description: C parser and AST generator written in Python.
|
|
# URL: https://pypi.org/project/pycparser/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: python3-setuptools
|
|
|
|
name=python3-pycparser
|
|
version=2.21
|
|
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
|
|
}
|