# Description: C parser and AST generator written in Python.
# URL: https://github.com/eliben/pycparser
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-setuptools

name=python3-pycparser
version=2.22
release=1
source=(https://pypi.org/packages/source/p/pycparser/pycparser-$version.tar.gz)

build() {
  ls
  cd pycparser-$version

  /usr/bin/python3 setup.py build
  cd pycparser
  /usr/bin/python3 _build_tables.py
  cd ..
  /usr/bin/python3 setup.py install --prefix=/usr \
    --root=$PKG \
    --skip-build
}
