mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 02:05:16 +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
32 lines
955 B
Text
32 lines
955 B
Text
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
pkgname=py3-ukpostcodeparser
|
|
_pkgname=ukpostcodeparser
|
|
pkgver=1.1.2
|
|
pkgrel=6
|
|
pkgdesc="UK Postcode parser"
|
|
url="https://github.com/hamstah/ukpostcodeparser"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hamstah/$_pkgname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
# tests broken upstream: https://github.com/hamstah/ukpostcodeparser/issues/8
|
|
options="!check"
|
|
|
|
replaces="py-ukpostcodeparser" # Backwards compatibility
|
|
provides="py-ukpostcodeparser=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="8113522b728c095f937a9f53f21c369130e3e63c4fc3546dbea4ad1c53648742fb0e766b1254c76ee65d69dec585f1a90caa7d39ca540de1765ff5f989a702de py3-ukpostcodeparser-1.1.2.tar.gz"
|