updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / qgis-git / PKGBUILD
blob8d7cdca5d6781f8da2ee0315c7196428b7163910
1 # Maintainer: mutantmonkey <mutantmonkey@mutantmonkey.in>
2 pkgname=qgis-git
3 pkgver=20111203
4 pkgrel=2
5 pkgdesc="A Geographic Information System (GIS) that supports vector, raster & database formats; dev version"
6 arch=('i686' 'x86_64')
7 url="http://qgis.org/"
8 license=('GPL')
9 depends=('jasper' 'curl' 'qt' 'gsl' 'python2' 'python2-qt' 'giflib' 'xerces-c') # grass
10 makedepends=('git' 'postgis>=1.4' 'netcdf' 'cmake')
11 provides=('qgis')
12 replaces=('qgis-svn')
13 conflicts=('qgis')
14 options=('!makeflags')
15 source=(qgis.desktop)
16 md5sums=('8ab66039f2aba519b92f52272ec3c13e')
17 sha256sums=('1d487c6d4ce207593e687c6f6873b4463b1f5bda2a3edb1383735f9f3e27ff20')
19 _gitroot=https://github.com/qgis/Quantum-GIS.git
20 _gitname=qgis
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [[ -d "$_gitname" ]]; then
27     cd "$_gitname" && git pull origin
28     msg "The local files are updated."
29   else
30     git clone "$_gitroot" "$_gitname"
31   fi
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"
40   cmake . \
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
52         make
55 package() {
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: