summaryrefslogblamecommitdiff
path: root/user/py3-cparser/APKBUILD
blob: d08071bf2155cb153b9983be501d621fc30ae8a8 (plain) (tree)






























                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-cparser
pkgver=2.19
pkgrel=0
pkgdesc="C99 parser in pure Python"
url="https://github.com/eliben/pycparser"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends=""
subpackages=""
source="py3-cparser-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz"
builddir="$srcdir/pycparser-release_v$pkgver"

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="88fe63c1a7a344c564dfd3b4f99735a4159c8a3f5738bab839943ea7fcbf1f5340f67326550b7e66508ea5862897e5bcdf363c2a8d47eccb50890573a2640a98  py3-cparser-2.19.tar.gz"