diff options
author | lothar-mar | 2015-06-11 16:00:20 +0100 |
---|---|---|
committer | lothar-mar | 2015-06-11 16:00:20 +0100 |
commit | 9d6e43599514e4b29b119e6a710c72823310393d (patch) | |
tree | 3afe62e727d81e899d454802b53ce9c6140f5637 /PKGBUILD | |
download | aur-qmenu-git.tar.gz |
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..afe021374859 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +#Maintainer: Lothar_m <lothar_m at riseup dot net> + +pkgname='qmenu-git' +_gitname='qmenu' +_gitroot="git://github.com/teopost/qmenu.git" +pkgver=1 +pkgrel=1 +arch=('i686' 'x86_64') +url="https://github.com/teopost/qmenu" +depends=('ncurses') +#optdepends=('') +makedepends=('git') +license=('PUBLIC') +pkgdesc="Tool for creating simple menus in linux environments." +provides=('qmenu') +conflicts=('qmenu') +source=("git://github.com/teopost/qmenu.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + # Use tag of the last commit + git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd ${srcdir} + # rm -rf qmenu + msg "Connecting to GIT server...." + + if [ -d "$_gitname" ] ; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone ${_gitroot} + fi + msg "GIT checkout done or server timeout" + + # compile executable + sh ./go + +} + +package() { + # install executable and license + install -D -m755 "$srcdir/$_gitname/qmenu" "$pkgdir/usr/bin/qmenu" +# install -D -m644 "$srcdir/$_gitname/LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE" +} + |