mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
993 B
Text
34 lines
993 B
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-python-stdnum
|
|
_pkgname=python-stdnum
|
|
pkgver=1.18
|
|
pkgrel=1
|
|
pkgdesc="Python module to handle standardized numbers and codes"
|
|
url="https://arthurdejong.org/python-stdnum"
|
|
arch="noarch"
|
|
license="LGPL-2.0-or-later"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-coverage py3-nose"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-stdnum" # Backwards compatibility
|
|
provides="py-stdnum=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
nosetests
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
ca211fa3f7a0c0a913c5b0c6e32cb477025e203eb4c0a648e47bf95cb361d800d620dc4ebcb3007eefbb5595098486963ffee71ea2c37f84d86443d01131db7c python-stdnum-1.18.tar.gz
|
|
"
|