void-packages/srcpkgs/python-qrcode/template

32 lines
784 B
Bash

# Template file for 'python-qrcode'
pkgname=python-qrcode
version=5.3
revision=3
noarch=yes
wrksrc="qrcode-${version}"
build_style=python-module
pycompile_module="qrcode"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
short_desc="QR Code image generator (Python2)"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://github.com/lincolnloop/python-qrcode"
license="MIT"
distfiles="${PYPI_SITE}/q/qrcode/qrcode-${version}.tar.gz"
checksum=4115ccee832620df16b659d4653568331015c718a754855caf5930805d76924e
post_install() {
vlicense LICENSE
}
python3-qrcode_package() {
noarch=yes
depends="python3-six"
pycompile_module="pyaes"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}