blob: d5aed49fd99a7f075d6249ef831860db8afb341b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-translationstring
_pkgname=translationstring
pkgver=1.3
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 --prefix=/usr --root="$pkgdir"
# Reduce size by removing installed-tests
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/translationstring/tests
}
sha512sums="deba5b460d9ea640087cff8b5d7b9256708abd4340a54556f1f0542e2e4f9f0ae0a3482b66a176712fcd6925c470da621adbc5e4c4173c0ef29b9cca5fba1102 translationstring-1.3.tar.gz"
|