From 6c9645d28c9d11fbae8da90925f198bf3c757ea2 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 20 Oct 2013 20:24:10 +0200 Subject: i3pystatus-git: Better pkgver(), added contributor line Replaced pkgver() function with better alternative that provides cleaner version numbers. Added contributor line --- .SRCINFO | 20 ++++++++++++++++++++ PKGBUILD | 24 ++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..1e07d7b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 1 15:02:20 UTC 2015 +pkgbase = i3pystatus-git + pkgdesc = i3status replacement written in python for the i3 window manager + pkgver = 3.1.r149.g6a3090b + pkgrel = 1 + url = https://github.com/enkore/i3pystatus.git + arch = i686 + arch = x86_64 + license = mit + makedepends = git + makedepends = python-distribute + depends = python + depends = basiciw-git + depends = python-netifaces-git + source = git+https://github.com/enkore/i3pystatus.git + md5sums = SKIP + +pkgname = i3pystatus-git + 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 +# Contributor: Johannes Löthberg + +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" +} -- cgit v1.2.3-70-g09d2