summaryrefslogtreecommitdiff
path: root/user/py3-cparser
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-cparser')
-rw-r--r--user/py3-cparser/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/py3-cparser/APKBUILD b/user/py3-cparser/APKBUILD
new file mode 100644
index 000000000..d08071bf2
--- /dev/null
+++ b/user/py3-cparser/APKBUILD
@@ -0,0 +1,31 @@
+# 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"