aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-qrcode/APKBUILD
blob: 3774c963d1955aeafb0bd3348cdcf1b26367f547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 py-setuptools"
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"