aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-babel/APKBUILD
blob: 1f3118403427c6af5b4b943a36d81b06eec93e34 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=py-babel
pkgver=1.3
pkgrel=0
pkgdesc="Python i18n tool"
url=http://babel.pocoo.org/
arch=noarch
license=BSD
depends=py-tz
makedepends=py-setuptools
source=https://pypi.python.org/packages/source/B/Babel/Babel-$pkgver.tar.gz

_builddir=$srcdir/Babel-$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
}

package() {
	cd "$_builddir"
	python setup.py install --root "$pkgdir"
}

md5sums="5264ceb02717843cbc9ffce8e6e06bdb  Babel-1.3.tar.gz"
sha256sums="9f02d0357184de1f093c10012b52e7454a1008be6a5c185ab7a3307aceb1d12e  Babel-1.3.tar.gz"
sha512sums="3173d578c36d7a20d14ffcf6406ec9fe301e71a199069b3d2e53bd0c66e7f83d6e94f071dc08f2708202ec1ace4d14f4476234cc8347a37b05317302f0cfe0cf  Babel-1.3.tar.gz"