1 # Maintainer: mutantmonkey <mutantmonkey@mutantmonkey.in>
5 pkgdesc="A Geographic Information System (GIS) that supports vector, raster & database formats; dev version"
9 depends=('jasper' 'curl' 'qt' 'gsl' 'python2' 'python2-qt' 'giflib' 'xerces-c') # grass
10 makedepends=('git' 'postgis>=1.4' 'netcdf' 'cmake')
14 options=('!makeflags')
16 md5sums=('8ab66039f2aba519b92f52272ec3c13e')
17 sha256sums=('1d487c6d4ce207593e687c6f6873b4463b1f5bda2a3edb1383735f9f3e27ff20')
19 _gitroot=https://github.com/qgis/Quantum-GIS.git
24 msg "Connecting to GIT server...."
26 if [[ -d "$_gitname" ]]; then
27 cd "$_gitname" && git pull origin
28 msg "The local files are updated."
30 git clone "$_gitroot" "$_gitname"
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
41 -DCMAKE_BUILD_TYPE=Release \
42 -DCMAKE_SKIP_RPATH=ON \
43 -DCMAKE_INSTALL_PREFIX=/usr \
44 -DGRASS_PREFIX=/opt/grass \
45 -DQGIS_MANUAL_SUBDIR=share/man \
46 -DQWT_INCLUDE_DIR=/usr/include/qwt5 \
47 -DQWT_LIBRARY=/usr/lib/libqwt5.so \
48 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
49 -DPYTHON_EXECUTABLE=/usr/bin/python2 \
50 -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages \
51 -DPYTHON_INCLUDE_PATH=/usr/include/python2.7
56 cd "$srcdir/$_gitname-build"
57 make DESTDIR="$pkgdir/" install
59 # create a more user-friendly application name link
60 ln -s /usr/bin/qgis $pkgdir/usr/bin/quantum-gis
62 # install some freedesktop.org compatibility
63 install -D -m644 ${srcdir}/qgis.desktop \
64 ${pkgdir}/usr/share/applications/qgis.desktop
67 # vim:set ts=2 sw=2 et: