diff options
author | Stefan Husmann | 2016-06-12 15:02:26 +0200 |
---|---|---|
committer | Stefan Husmann | 2016-06-12 15:02:26 +0200 |
commit | 61933a163e63a97253c499c06436c513a47066fb (patch) | |
tree | fb3a5a7ea2e16cb6684dd608d19f65d1bc37f1c7 /PKGBUILD | |
parent | 2670fc35e0b06df864d0a2ed8d162560e94c1607 (diff) | |
download | aur-61933a163e63a97253c499c06436c513a47066fb.tar.gz |
update
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 11 insertions, 22 deletions
@@ -1,7 +1,8 @@ # Contributor: Mateusz Ĺukasik <mati75@linuxmint.pl> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=tinywm-git -pkgver=20121222 +pkgver=1.1.33.g9d05612 pkgrel=1 pkgdesc="A tiny window manager written in only ~50 lines of code" arch=('i686' 'x86_64') @@ -13,36 +14,24 @@ conflicts=('tinywm') depends=('libx11') optdepends=('python-xlib: for python version (uncomment last line of PKGBUILD)') - -_gitroot="git://github.com/mackstann/tinywm.git" +source=('git://github.com/mackstann/tinywm.git') +md5sums=('SKIP') _gitname="tinywm" -build() { - msg "Avahi needs to be running to run tests." - msg "Remove the 'make test' line in the PKGBUILD if you don't want to -run tests." - cd "$srcdir" - msg "Connecting to GIT server...." - - if [ -d $_gitname ] ; then - cd $_gitname && git pull origin - msg "The local files are updated." - else - git clone $_gitroot $_gitname - fi +pkgver() { + cd "$_gitname" + printf %s $(git describe --tags|tr - .) +} - msg "GIT checkout done or server timeout" - msg "Starting make..." - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" +build() { + cd "$_gitname" make } package() { - cd "$srcdir/$_gitname-build" + cd "$_gitname" install -D -m755 tinywm $pkgdir/usr/bin/tinywm install -D -m644 README $pkgdir/usr/share/licenses/$pkgname/LICENSE #install -D -m755 tinywm.py $pkgdir/usr/bin/tinywm.py |