diff options
author | Lucas Werkmeister | 2015-08-09 17:32:00 +0200 |
---|---|---|
committer | Lucas Werkmeister | 2015-08-09 17:41:46 +0200 |
commit | 590fb680d23bf305c94739df9107f0629e7e1330 (patch) | |
tree | 9720983cf41544f043694530e5fc3f31e2ecd6f2 /PKGBUILD | |
download | aur-590fb680d23bf305c94739df9107f0629e7e1330.tar.gz |
Initial import
Adapted from
http://pkgbuild.com/git/aur-mirror.git/plain/libturpial-git/PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9730081e6876 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Lucas Werkmeister <mail@lucaswerkmeister.de> +# Contributor: Limao Luo <luolimao+AUR@gmail.com> +# Contributor: Louis des Landes <psyker7 at gmail dot com> + +pkgname=libturpial-git +pkgver=1.7.0.602.3de626f +pkgrel=1 +pkgdesc="A library that handles multiple microblogging protocols." +arch=(any) +url=http://turpial.org.ve/ +license=(GPL3) +depends=(python2-oauth python2-requests python2-simplejson) +makedepends=(git python2-setuptools) +provides=(${pkgname%-*}=$pkgver) +conflicts=(${pkgname%-*}) +source=($pkgname::git://github.com/satanas/libturpial.git#branch=development) +md5sums=('SKIP') + +pkgver() { + cd $pkgname/ + echo $(head -n1 ChangeLog | awk '{print $1}' | sed 's/v//;s/-/./').$(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +build() { + cd $pkgname/ + python2 setup.py build || return 1 +} + +package() { + cd $pkgname/ + python2 setup.py install --root="$pkgdir/" --optimize=1 || return 1 + rm "$pkgdir"/usr/{AUTHORS,COPYING,ChangeLog} +} |