# Contributor: # Maintainer: pkgname=py3-cparser _pkgname=pycparser pkgver=2.19 pkgrel=4 pkgdesc="C parser written in Python3" url="https://github.com/eliben/pycparser" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-cparser" # Backwards compatibility provides="py-cparser=$pkgver-r$pkgrel" # Backwards compatibility build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" python3 tests/all_tests.py } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="7f830e1c9066ee2d297a55e2bf6db4bf6447b6d9da0145d11a88c3bb98505755fb7986eafa6e06ae0b7680838f5e5d6a6d188245ca5ad45c2a727587bac93ab5 pycparser-2.19.tar.gz"