aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2013-10-20 20:24:10 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:37 +0200
commit6c9645d28c9d11fbae8da90925f198bf3c757ea2 (patch)
tree2fcaf112105a5a5d66adf0672f85f057ea58f0ca /PKGBUILD
downloadpkgbuilds-6c9645d28c9d11fbae8da90925f198bf3c757ea2.tar.xz
i3pystatus-git: Better pkgver(), added contributor line
Replaced pkgver() function with better alternative that provides cleaner version numbers. Added contributor line
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..1785862
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Jan Oliver Oelerich <janoliver@oelerich.org>
+# Contributor: Johannes Löthberg <johannes@kyrias.com>
+
+pkgname=i3pystatus-git
+pkgdesc="i3status replacement written in python for the i3 window manager"
+pkgver=3.1.r149.g6a3090b
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('mit')
+depends=('python' 'basiciw-git' 'python-netifaces-git')
+makedepends=('git' 'python-distribute')
+url="https://github.com/enkore/i3pystatus.git"
+source=('git+https://github.com/enkore/i3pystatus.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir"/i3pystatus
+ printf "%s" "$(git describe --always --long | sed 's/^v//;s/-/-r/' | tr - .)"
+}
+
+package() {
+ cd "$srcdir"/i3pystatus
+ python setup.py install --prefix=/usr --root="$pkgdir"
+}