updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / map2x-plugins-git / PKGBUILD
blob12b75d60d46990691543908ff0ea6e97dac41237
1 # Author: mosra <mosra@centrum.cz>
2 pkgname=map2x-plugins-git
3 pkgver=20101017
4 pkgrel=1
5 pkgdesc="Plugins for Map2X navigation system (Git version)"
6 arch=('i686' 'x86_64')
7 url="http://mosra.cz/blog/map2x.php"
8 license=('LGPLv3')
9 makedepends=('cmake' 'git')
10 depends=('map2x-core-git')
11 provides=('map2x-plugins')
12 conflicts=('map2x-plugins')
14 _gitroot="git://github.com/mosra/map2x-plugins.git"
15 _gitname="map2x-plugins"
17 build() {
18     cd "$srcdir"
19     msg "Connecting to GIT server...."
21     if [ -d $_gitname ] ; then
22         cd $_gitname && git pull origin
23         msg "The local files are updated."
24     else
25         git clone $_gitroot $_gitname
26     fi
28     msg "GIT checkout done or server timeout"
29     msg "Starting make..."
31     mkdir -p "$srcdir/build"
32     cd "$srcdir/build"
34     cmake ../$_gitname \
35         -DCMAKE_INSTALL_PREFIX=/usr
36     make
39 package() {
40   cd "$srcdir/build"
41   make DESTDIR="$pkgdir/" install