New package: python-pyzbar-0.1.7
This commit is contained in:
parent
6a7861bb4b
commit
5a076b1bab
2 changed files with 35 additions and 0 deletions
34
srcpkgs/python-pyzbar/template
Normal file
34
srcpkgs/python-pyzbar/template
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# Template file for 'python-pyzbar'
|
||||||
|
pkgname=python-pyzbar
|
||||||
|
version=0.1.7
|
||||||
|
revision=2
|
||||||
|
noarch=yes
|
||||||
|
wrksrc="pyzbar-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
pycompile_module="pyzbar"
|
||||||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
depends="libzbar python-enum34 python-dateutil"
|
||||||
|
short_desc="Read one-dimensional barcodes and QR codes"
|
||||||
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/NaturalHistoryMuseum/pyzbar/"
|
||||||
|
distfiles="https://github.com/NaturalHistoryMuseum/pyzbar/archive/v${version}.tar.gz"
|
||||||
|
checksum=4dbbece533650f2aeb6c8d1f41cf424614d2877d7331c48a9eed35ae9f949626
|
||||||
|
alternatives="read_zbar:/usr/bin/read_zbar:/usr/bin/read_zbar.py2"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
# These only exec read_zbar.py{2,3}
|
||||||
|
rm "$DESTDIR"/usr/bin/read_zbar{2,3}
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-pyzbar_package() {
|
||||||
|
noarch=yes
|
||||||
|
pycompile_module="pyzbar"
|
||||||
|
depends="libzbar python3-dateutil"
|
||||||
|
alternatives="read_zbar:/usr/bin/read_zbar:/usr/bin/read_zbar.py3"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3*
|
||||||
|
vmove usr/bin/read_zbar.py3
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-pyzbar
Symbolic link
1
srcpkgs/python3-pyzbar
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-pyzbar
|
Loading…
Add table
Add a link
Reference in a new issue