aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-qrcode
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2014-08-18 18:57:50 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2014-08-21 07:53:24 +0000
commitcfd6e6e20e4ec5ef33310d7698bd9bce7f440f4b (patch)
tree2e1ff667faf0fd1a1fd47f0ec3e0a743da8ac635 /testing/py-qrcode
parent2c932c458ed635ed23a15272a7b2b757d9873c8e (diff)
downloadaports-cfd6e6e20e4ec5ef33310d7698bd9bce7f440f4b.tar.bz2
aports-cfd6e6e20e4ec5ef33310d7698bd9bce7f440f4b.tar.xz
testing/py-qrcode: new aport
A QR Code image generator https://github.com/lincolnloop/python-qrcode
Diffstat (limited to 'testing/py-qrcode')
-rw-r--r--testing/py-qrcode/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-qrcode/APKBUILD b/testing/py-qrcode/APKBUILD
new file mode 100644
index 0000000000..af9174c8a8
--- /dev/null
+++ b/testing/py-qrcode/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-qrcode
+_pkgname=qrcode
+pkgver=5.0.1
+pkgrel=0
+pkgdesc="A QR code image generator"
+url="https://github.com/lincolnloop/python-qrcode"
+arch="noarch"
+license="BSD"
+depends="python py-pillow"
+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="bef9cccd638888724cd2ae31860875b5 qrcode-5.0.1.tar.gz"
+sha256sums="5ce16060c2c4f9fc9455bc82766c227e55ee9b43bfb9f17bfe3f1f5ba5eecf3c qrcode-5.0.1.tar.gz"
+sha512sums="a57ca9d4b382637a8b3cc3a20a03d291f22675e9d851a739f01c610465f1977efd748661330557e9017db2d7b9b501c278668da5eeef93fb8e503e71921bb4c5 qrcode-5.0.1.tar.gz"