# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar pkgname = 'py-qrcode'
setvar _pkgname = 'qrcode'
setvar pkgver = '5.3'
setvar pkgrel = '0'
setvar pkgdesc = ""A QR code image generator""
setvar url = ""https://github.com/lincolnloop/python-qrcode""
setvar arch = ""noarch""
setvar license = ""BSD""
setvar depends = ""python2 py-pillow""
setvar depends_dev = """"
setvar makedepends = ""python2-dev py-setuptools""
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/lincolnloop/python-qrcode/archive/v5.3.tar.gz""

setvar builddir = ""$srcdir"/python-qrcode-$pkgver"

proc build {
	cd $builddir
	python2 setup.py build || return 1
}

proc package {
	cd $builddir
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

setvar md5sums = ""81e3670f61bdf186ded61d6bafa847ec  py-qrcode-5.3.tar.gz""
setvar sha256sums = ""933123de02a116303ccdf92d1d32c65f24bf8a69faf7ecde41bd8cf4f975ad87  py-qrcode-5.3.tar.gz""
setvar sha512sums = ""9c25cadc4a5d82aabc754027373eb9700cbe4e3148fb84de1356df49dad0bfad0b86956d6e32c72448a2838f9815a029a0807c8f23f8dae042a44346c2654487  py-qrcode-5.3.tar.gz""