mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +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
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-translationstring
|
|
_pkgname=translationstring
|
|
pkgver=1.4
|
|
pkgrel=1
|
|
pkgdesc="A Python utility library for i18n"
|
|
url="https://pypi.org/project/translationstring/" # actual homepage doesn't exist anymore
|
|
arch="noarch"
|
|
license="ZPL-2.1"
|
|
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-translationstring" # Backwards compatibility
|
|
provides="py-translationstring=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
# Reduce size by removing installed-tests
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/translationstring/tests
|
|
}
|
|
|
|
sha512sums="
|
|
2f06af782421fcf9ba907a8bc6419cd2c8f5352eee44d051ca1647b418f634e24220727b0eec748c9ead6aeb3c57ea1740356b65d6e2017fa0a395e1823ac81a translationstring-1.4.tar.gz
|
|
"
|