From e4f7b41b11788b5f272a425e7d5858b5f3c3723d Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 16 Sep 2013 16:50:59 +0200 Subject: Added an archlinux PKGBUILD --- packaging/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 packaging/PKGBUILD (limited to 'packaging') 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 + +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" +} -- cgit