1 # Contributor: Andreas Schönfelder <passtschu at freenet dot de>
6 pkgdesc="Merkaartor is a small editor for OpenStreetMap"
8 url="http://www.merkaartor.be/"
10 depends=('qt>=4.4' 'libxml2' 'libxslt' 'exiv2')
11 optdepends=('gpsd' 'inkscape')
13 provides=('merkaartor')
14 conflicts=('merkaartor')
15 replaces=('merkaartor')
17 _gitroot="git://gitorious.org/merkaartor/main.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 qmake Merkaartor.pro PREFIX=/usr NODEBUG=1
40 make INSTALL_ROOT="${pkgdir}" install