void-packages/srcpkgs/python-qrcode/template
2019-03-01 12:04:45 -03:00

36 lines
864 B
Bash

# Template file for 'python-qrcode'
pkgname=python-qrcode
version=6.1
revision=1
archs=noarch
wrksrc="qrcode-${version}"
build_style=python-module
pycompile_module="qrcode"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
checkdepends="python3-six"
short_desc="QR Code image generator (Python2)"
maintainer="Charles E. Lehner <cel@celehner.com>"
license="BSD-3-Clause"
homepage="https://github.com/lincolnloop/python-qrcode"
distfiles="${PYPI_SITE}/q/qrcode/qrcode-${version}.tar.gz"
checksum=505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-qrcode_package() {
archs=noarch
depends="python3-six"
pycompile_module="qrcode"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}