1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/py3-polib/APKBUILD
2021-08-03 02:21:32 -06:00

35 lines
953 B
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-polib
_pkgname=polib
pkgver=1.1.1
pkgrel=0
pkgdesc="library to manipulate gettext files"
url="http://polib.readthedocs.org/en/latest/index.html"
arch="noarch"
license="MIT"
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-polib # Backwards compatibility
provides=py-polib=$pkgver-r$pkgrel # Backwards compatibility
options="!check" # tests broken
build() {
python3 setup.py build
}
check() {
python3 tests/tests.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
38de5fbdbc9ef879a4d55b9fe4f86a3aca3fb90dbb671745bd2b126be443598b8b18fe53afd116c3a4d3efc7a42b5ed05d75569bb5b2ef0bd2ced6e13eda95ad polib-1.1.1.tar.gz
"