summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afe021374859279820640f57f448e1f7bb5a4679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"
}