mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-polib
|
|
_pkgname=polib
|
|
pkgver=1.0.3
|
|
pkgrel=0
|
|
pkgdesc="A library to manipulate gettext files"
|
|
url="http://polib.readthedocs.org/en/latest/index.html"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python"
|
|
depends_dev=""
|
|
makedepends="python-dev"
|
|
install=""
|
|
subpackages=""
|
|
source="https://bitbucket.org/izi/polib/downloads/$_pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$_pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
python setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
md5sums="dc9dc39d4053cfe030155891f3043cb1 polib-1.0.3.tar.gz"
|
|
sha256sums="7b281e5ca799f9061bf029f2e911e99df483a1a02ef2ffaaf73fe80222f26aff polib-1.0.3.tar.gz"
|
|
sha512sums="29cbf4586cffa8e124f92725f5adcb3e92e7761ff695629748cb4e8e94ee2e97c72b8030c715acc5fa372adb52310a95f9873387345bfd4f45a9b5831b4db13d polib-1.0.3.tar.gz"
|