# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-barcodenumber _pkgname=barcodenumber pkgver=0.2.1 pkgrel=7 pkgdesc="A Python module to validate product codes" url="https://bitbucket.org/zikzakmedia/python-barcodenumber" arch="noarch" license="GPL-3.0-or-later" depends="python3" makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-barcodenumber # Backwards compatibility provides=py-barcodenumber=$pkgver-r$pkgrel # Backwards compatibility build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="5a2f517cf3ea4d0ff9cbcf7b6b81e44cd4cd3a2ac38bc5b2a087a5e84f0917daa560f6bd7eeb33b3a3695f833fcc321b8fee114f28b89eed7bdb4efaf7de4412 barcodenumber-0.2.1.tar.gz"