aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-09-16 16:50:59 +0200
committerjaseg <s@jaseg.de>2013-09-16 16:50:59 +0200
commite4f7b41b11788b5f272a425e7d5858b5f3c3723d (patch)
treea8c83f52d0f49be469b637106d3414fc3225d058
parent85fffca04d66b94da378c00ffcf664ea188748ed (diff)
downloadponysay-master.tar.gz
ponysay-master.tar.bz2
ponysay-master.zip
Added an archlinux PKGBUILDHEADmaster
-rw-r--r--packaging/PKGBUILD33
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"
+}