diff options
author | jaseg <s@jaseg.de> | 2013-09-16 16:50:59 +0200 |
---|---|---|
committer | jaseg <s@jaseg.de> | 2013-09-16 16:50:59 +0200 |
commit | e4f7b41b11788b5f272a425e7d5858b5f3c3723d (patch) | |
tree | a8c83f52d0f49be469b637106d3414fc3225d058 /packaging | |
parent | 85fffca04d66b94da378c00ffcf664ea188748ed (diff) | |
download | ponysay-e4f7b41b11788b5f272a425e7d5858b5f3c3723d.tar.gz ponysay-e4f7b41b11788b5f272a425e7d5858b5f3c3723d.tar.bz2 ponysay-e4f7b41b11788b5f272a425e7d5858b5f3c3723d.zip |
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packaging/PKGBUILD b/packaging/PKGBUILD new file mode 100644 index 0000000..3414a61 --- /dev/null +++ b/packaging/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: jaseg <arch@jaseg.net> + +pkgname=ponysay-jaseg-git +pkgver=0.984.85fffca +pkgrel=1 +pkgdesc="Cowsay. With ponies. Improved, faster, 20% cooler fork." +arch=('any') +license=('GPL') +url="https://github.com/jaseg/ponysay" +depends=('python') +makedepends=('git' 'pixelterm') +provides=('ponysay') +source=('git+https://github.com/jaseg/ponysay#branch=master') +md5sums=('SKIP') + +_gitname="ponysay" + +pkgver() { + cd "$srcdir/$_gitname" + microver="$(git log -1 --pretty=format:%h )" + minorver="$(git rev-list --count HEAD)" + echo "0.$minorver.$microver" +} + +build() { + cd "${srcdir}/$_gitname" + make +} + +package() { + cd "${srcdir}/$_gitname" + python setup.py install --root="$pkgdir" +} |