diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-07 20:57:43 +0000 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2013-09-08 14:36:46 +0200 |
commit | 23a95a8f1ec6f2e45b1005931e3af303175b2500 (patch) | |
tree | 61e8e8ba5501968dd6fb6602e8aa2c56ff8dac91 /testing/py-barcodenumber | |
parent | 427c1738f62161aeb8fe99877ba0ec1fea470b53 (diff) | |
download | aports-23a95a8f1ec6f2e45b1005931e3af303175b2500.tar.bz2 aports-23a95a8f1ec6f2e45b1005931e3af303175b2500.tar.xz |
testing/py-barcodenumber: new aport
A Python module to validate product codes
https://bitbucket.org/zikzakmedia/python-barcodenumber
Diffstat (limited to 'testing/py-barcodenumber')
-rw-r--r-- | testing/py-barcodenumber/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-barcodenumber/APKBUILD b/testing/py-barcodenumber/APKBUILD new file mode 100644 index 0000000000..aa0a72ec48 --- /dev/null +++ b/testing/py-barcodenumber/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-barcodenumber +_pkgname=barcodenumber +pkgver=0.1 +pkgrel=0 +pkgdesc="A Python module to validate product codes" +url="https://bitbucket.org/zikzakmedia/python-barcodenumber" +arch="noarch" +license="GPL3" +depends="python" +depends_dev="" +makedepends="python-dev" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$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="831ad66245ee9438ae5611fcdc358d24 barcodenumber-0.1.tar.gz" +sha256sums="cdbaa7a1e707cbfb94669300340d98e63184ff8630a8d5e36802aad6a14b7477 barcodenumber-0.1.tar.gz" +sha512sums="cc69584b0c1782e953798d687d62a605e47fa8427517e026ec77e688654cc618ecdeb82f5c231483044fdd1bf6cb20d120be4453e1878e4cb2c3a0e432b60f39 barcodenumber-0.1.tar.gz" |