summaryrefslogtreecommitdiffstats
path: root/testing/py-polib/APKBUILD
blob: 51b18d8f9af768f03ef03eafbc58c85bae980eb8 (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.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"