diff options
Diffstat (limited to 'testing/py-qrcode')
-rw-r--r-- | testing/py-qrcode/APKBUILD | 41 |
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" |