diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-08-24 13:34:47 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-08-24 13:34:47 -0500 |
commit | 0d1c4dd6524a649ad678411e0269f2d805c6344a (patch) | |
tree | 1a675e0e569e581f9ac7102231d1fde31df21fcd /testing/py-cparser | |
parent | d346701104b229534be21ebba771b85bce958c8f (diff) | |
download | aports-0d1c4dd6524a649ad678411e0269f2d805c6344a.tar.bz2 aports-0d1c4dd6524a649ad678411e0269f2d805c6344a.tar.xz |
testing/py-cparser: new aport
Diffstat (limited to 'testing/py-cparser')
-rw-r--r-- | testing/py-cparser/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-cparser/APKBUILD b/testing/py-cparser/APKBUILD new file mode 100644 index 0000000000..99fd4dfbc1 --- /dev/null +++ b/testing/py-cparser/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=py-cparser +pkgver=2.10 +pkgrel=0 +pkgdesc="a C parser written in Python" +url="https://github.com/eliben/pycparser" +arch="noarch" +license="BSD" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="https://pypi.python.org/packages/source/p/pycparser/pycparser-$pkgver.tar.gz" + +_builddir="$srcdir"/pycparser-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="d87aed98c8a9f386aa56d365fe4d515f pycparser-2.10.tar.gz" +sha256sums="957d98b661c0b64b580ab6f94b125e09b6714154ee51de40bca16d3f0076b86c pycparser-2.10.tar.gz" +sha512sums="afe5079d6b0a39ea7f0df1ce74b1981c78d8687dbef50fb7a692395ca4a7e7a8119ec6abc0dfeb7a0535865ed2fac9dafca189bdbf6ff9205612205560e2d371 pycparser-2.10.tar.gz" |