pkgname=python-pycparser pkgver=2.22 pkgrel=1 pkgdesc="C parser and AST generator written in Python" arch=('x86_64') url="https://github.com/eliben/pycparser" license=('BSD') depends=('python') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=(https://github.com/eliben/pycparser/archive/release_v${pkgver}/${pkgname#*-}-release_v${pkgver}.tar.gz) sha256sums=(b074c239ee828fcb9c97774b942f3ce51f0d2edc00809f49c3c3ef0f3baaf9c1) build() { cd ${pkgname#*-}-release_v${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-release_v${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }