summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2d126bdb359cad26160e99f313d740713a57231 (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
# Maintainer: Raimar Bühmann <navitconfigurator@web.de>
# Contributor: raimar <navitconfigurator@web.de>

pkgname=navitconfigurator-git
pkgver=19.20170225
pkgrel=1
pkgdesc="NavitConfigurator is an editor for configuring the open source navigation program Navit. It supports Android devices to test the result directly."
arch=('i686' 'x86_64')
url='https://sourceforge.net/projects/navitconfigurat/'
license=('LGPL3')
depends=('qt5-webkit')
makedepends=('git')
provides=('navitconfigurator')
conflicts=('navitconfigurator')
source=('git://git.code.sf.net/p/navitconfigurat/code')
md5sums=('SKIP')
recommands=('adb-git')

_gitroot="code"

pkgver() {
	cd $_gitroot
	_versionTime=$(git show -s --format="%ci" | grep -o "....-..-.." | sed "s/-//g")
	echo "$(git rev-list --count HEAD).$_versionTime"
}

build() {
	cd $_gitroot
	qmake
	make
}

package() {
	cd $_gitroot
	make INSTALL_ROOT="$pkgdir" install
}