blob: ece92987e34115e919154285d4efa562ec80fbfe (
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
|
# Maintainer: Patrick Guenther <info@paddybu.de>
pkgname=python2-translationstring
pkgver=20170829
pkgrel=1
pkgdesc="A library used for internationalization (i18n) duties related to translation."
url="https://github.com/Pylons/translationstring"
arch=('any')
license=('GPL2')
depends=('python2' 'python2-setuptools')
makedepends=('git')
provides=("python2-translationstring")
#source=('git://gitorious.org/bdflib/mainline.git')
source=('git://github.com/Pylons/translationstring')
md5sums=('SKIP')
_gitname="translationstring"
pkgver() {
cd $_gitname
git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}
build() {
cd $_gitname
msg "GIT checkout done or server timeout"
msg "Starting setup.py..."
find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/python|/usr/bin/env python2|'
python2 setup.py build
}
package() {
cd $_gitname
python2 setup.py install --prefix=/usr --root="$pkgdir"
}
|