diff options
author | Christian Hesse | 2015-06-28 21:47:08 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-28 21:47:08 +0200 |
commit | 5ded14f74c85faca276b4f27ad7275437b7e575f (patch) | |
tree | 1aed9e2602a15f4e6f88b3c890e0b7a665a726d2 /PKGBUILD | |
download | aur-5ded14f74c85faca276b4f27ad7275437b7e575f.tar.gz |
initial import of nullshell-git 0.0.6.r0.g967686e-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8b181d6862f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Christian Hesse <mail@eworm.de> + +pkgname=nullshell-git +pkgver=0.0.6.r0.g967686e +pkgrel=1 +pkgdesc="do nothing but print keep alive characters, can be used for login shell - git checkout" +arch=('i686' 'x86_64') +makedepends=('markdown' 'git') +url="https://github.com/eworm-de/nullshell" +conflicts=('nullshell') +license=('GPL') +install=nullshell.install +source=('git://github.com/eworm-de/nullshell.git') +sha256sums=('SKIP') + +pkgver() { + cd nullshell/ + + if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then + echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + else + echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + fi +} + +build() { + cd nullshell/ + + make +} + +package() { + cd nullshell/ + + make DESTDIR="${pkgdir}" install +} + |