void-packages/srcpkgs/python3-pyzbar/template

22 lines
722 B
Bash

# Template file for 'python3-pyzbar'
pkgname=python3-pyzbar
version=0.1.9
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="libzbar python3"
checkdepends="python3-pytest-xdist python3-Pillow python3-numpy $depends"
short_desc="Read one-dimensional barcodes and QR codes"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/NaturalHistoryMuseum/pyzbar/"
distfiles="https://github.com/NaturalHistoryMuseum/pyzbar/archive/v${version}.tar.gz"
checksum=6b84ec4c1f36df590c65b610a7757ef8829f202a7df210d2891e6592a8bee8bb
conflicts="python-pyzbar>=0"
post_install() {
vlicense LICENSE.txt
# These only exec read_zbar.py
rm "$DESTDIR"/usr/bin/read_zbar
}