2015-02-19 22:06:39 +11:00
|
|
|
# Description: C parser and AST generator written in Python.
|
|
|
|
# URL: https://github.com/eliben/pycparser
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-02-05 16:32:37 +11:00
|
|
|
# Depends on: python-setuptools
|
2015-02-19 22:06:39 +11:00
|
|
|
|
2018-12-08 17:03:36 +11:00
|
|
|
name=python-pycparser
|
2020-03-05 19:22:43 +11:00
|
|
|
version=2.20
|
2015-02-19 22:06:39 +11:00
|
|
|
release=1
|
2018-12-08 17:03:36 +11:00
|
|
|
source=(https://github.com/eliben/${name#*-*}/archive/release_v$version.tar.gz)
|
2015-02-19 22:06:39 +11:00
|
|
|
|
|
|
|
build() {
|
2018-12-08 17:03:36 +11:00
|
|
|
cd ${name#*-}-release_v$version
|
|
|
|
|
2015-02-19 22:06:39 +11:00
|
|
|
/usr/bin/python setup.py build
|
|
|
|
|
|
|
|
cd pycparser
|
|
|
|
/usr/bin/python _build_tables.py
|
|
|
|
cd -
|
|
|
|
|
|
|
|
/usr/bin/python setup.py install --root=$PKG --optimize=1
|
|
|
|
}
|