summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 20:24:21 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 20:24:21 +0000
commitcc2c09785b83ad30ea47ad0b9043619136071a47 (patch)
treee4fdf56576f3ba058a497b8085e35194363a527d
parent7057cc06aae39037d7f0b84b51d7689ffbfe2249 (diff)
downloadpackages-cc2c09785b83ad30ea47ad0b9043619136071a47.tar.gz
packages-cc2c09785b83ad30ea47ad0b9043619136071a47.tar.bz2
packages-cc2c09785b83ad30ea47ad0b9043619136071a47.tar.xz
packages-cc2c09785b83ad30ea47ad0b9043619136071a47.zip
user/py3-cparser: new package
-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"