PKGBUILDs/community/qgis/PKGBUILD
2009-10-09 21:15:33 -05:00

44 lines
1.3 KiB
Bash

# Maintainer: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
pkgname=qgis
pkgver=1.1.0
pkgrel=4
pkgdesc="A Geographic Information System (GIS) that supports vector, raster & database formats."
url="http://qgis.org/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('jasper' 'curl' 'qt' 'xorg-server' 'gsl' 'grass' 'python' 'pyqt' 'giflib' 'xerces-c')
makedepends=('postgis>=1.4' 'netcdf' 'cmake')
options=('force' '!makeflags')
source=(http://download.osgeo.org/qgis/src/${pkgname}_$pkgver.tar.gz
qgis.desktop)
md5sums=('069ae328cb3388fe58b89fa1b9841b5e'
'8ab66039f2aba519b92f52272ec3c13e')
build() {
cd $srcdir/${pkgname}-$pkgver
# Fix insecure RPATH is weird, but just works ;)
echo "os.system(\"sed -i '/^LFLAGS/s|-Wl,-rpath,.\+ ||g' gui/Makefile core/Makefile\")" >> python/configure.py.in
cd $srcdir
mkdir build
cd build
cmake ../${pkgname}-$pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGRASS_PREFIX=/opt/grass \
-DQGIS_MANUAL_SUBDIR=share/man
sleep 10
make || return 1
make install DESTDIR=$pkgdir
# install some freedesktop.org compatibility
install -D -m644 $srcdir/$pkgname.desktop \
$pkgdir/usr/share/applications/$pkgname.desktop
}