diff options
author | Patrick Günther | 2019-12-24 14:02:35 +0100 |
---|---|---|
committer | Patrick Günther | 2019-12-24 14:02:35 +0100 |
commit | db978f8d3c1b8050a70422cda90a1eebc3d17e43 (patch) | |
tree | c56d0340274262cb9d4758b110d5ffd5c51b8e2e /PKGBUILD | |
download | aur-python2-translationstring.tar.gz |
created PKGBUILD for setting up translationstring from git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ece92987e341 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |