# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-vcversioner _pkgname=vcversioner pkgver=2.16.0.0 pkgrel=2 pkgdesc="Use version control tags to discover version numbers" url="https://pypi.python.org/pypi/vcversioner" arch="noarch" license="ISC" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest" source="$_pkgname-$pkgver.tar.gz::https://github.com/habnabit/vcversioner/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces=py-vcversioner # Backwards compatibility provides=py-vcversioner=$pkgver-r$pkgrel # Backwards compatibility prepare() { default_prepare echo -n "${pkgver}-0-UNKNOWN" > version.txt } build() { python3 setup.py build } check() { py.test-3 -v } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="0ce7edf28d0626707f977b565f938a754d374d0cada8683f05fa6d1088930d4d858213dbcb5dba149d828e76341eec4a168ef1998ce9894b72c35c1eef59bd08 vcversioner-2.16.0.0.tar.gz"