blob: c88e3177253c2d2d4e45339d85b9c9e30a3df196 (
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
35
36
37
38
39
40
41
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-polib
_pkgname=polib
pkgver=1.0.5
pkgrel=0
pkgdesc="A library to manipulate gettext files"
url="http://polib.readthedocs.org/en/latest/index.html"
arch="noarch"
license="MIT"
depends="python2"
depends_dev=""
makedepends="python2-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_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"
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="c11eb8ce8e1b20fff71921402b3ce241 polib-1.0.5.tar.gz"
sha256sums="c44236823eb6227b2fab8bd9e56632a649e67a80211f85a4a2e3c85c65c8acd9 polib-1.0.5.tar.gz"
sha512sums="3dc02801bad76dec7a5c7a8d11e14294884bf4a8f45ed73b50b960617aa1600ee2f35261dd3ecde8b1deda1c897b0a55eaf2f0f755fe429df28b1acbd9c5e7d9 polib-1.0.5.tar.gz"
|