desktop/qgis/PKGBUILD

58 lines
2.2 KiB
Bash
Raw Normal View History

2011-04-16 18:53:15 +08:00
pkgname=qgis
2016-10-30 20:54:46 +08:00
pkgver=2.18.0
pkgrel=1
2014-06-28 17:33:08 +08:00
pkgdesc='A Geographic Information System (GIS) that supports vector, raster and database formats'
2011-04-16 18:53:15 +08:00
url='http://qgis.org/'
license=('GPL')
arch=('x86_64')
2016-07-28 07:25:11 +08:00
depends=('bison' 'cfitsio' 'curl' 'flex' 'gdal' 'jasper' 'libmariadbclient' 'libspatialite' 'python2-pyspatialite' 'libxslt'
2015-12-07 08:10:41 +08:00
'postgresql-libs' 'pyqt4-python2' 'python2' 'qscintilla-python2' 'python2-psycopg2'
'qca' 'qt' 'qwt6' 'spatialindex' 'sqlite3')
makedepends=('cmake' 'fcgi' 'grass' 'gsl' 'netcdf' 'postgis' 'python2-sip')
2014-06-28 17:33:08 +08:00
optdepends=('fcgi: qgis mapserver'
2011-04-16 18:53:15 +08:00
'grass: grass plugin'
2014-06-28 17:33:08 +08:00
'gsl: georeferencer'
'python2-sip: python-support'
'postgis: postgis support and SPIT plugin')
2016-09-12 08:55:48 +08:00
source=("http://qgis.org/downloads/$pkgname-$pkgver.tar.bz2")
2016-10-30 20:54:46 +08:00
sha1sums=('37e93d10369a0d33bcfe290a1d917b543b9b4c4c')
2015-12-07 08:10:41 +08:00
2016-07-28 07:25:11 +08:00
prepare() {
cd $pkgname-$pkgver
[[ -d build ]] || mkdir build
}
2012-08-11 18:13:50 +08:00
2014-06-28 17:33:08 +08:00
build() {
2016-03-19 19:57:53 +08:00
cd $pkgname-$pkgver/build
cmake -G "Unix Makefiles" ../ \
2014-06-28 17:33:08 +08:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2015-03-21 17:26:12 +08:00
-DWITH_GRASS=OFF \
2014-06-28 17:33:08 +08:00
-DGRASS_PREFIX=/opt/grass \
2015-03-15 22:00:41 +08:00
-DGRASS_INCLUDE_DIR=/opt/grass/include/ \
2014-06-28 17:33:08 +08:00
-DQGIS_MANUAL_SUBDIR=share/man \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
2016-03-19 19:57:53 +08:00
-DENABLE_TESTS=FALSE \
-DCMAKE_SKIP_RPATH=TRUE
make
2011-04-16 18:53:15 +08:00
}
package() {
2016-03-19 19:57:53 +08:00
cd $pkgname-$pkgver/build
make DESTDIR=$pkgdir install
2014-06-28 17:33:08 +08:00
# create a more user-friendly application name link
2016-03-19 19:57:53 +08:00
ln -s /usr/bin/qgis "$pkgdir/usr/bin/quantum-gis"
2014-06-28 17:33:08 +08:00
# install some freedesktop.org compatibility
2016-10-06 21:59:01 +08:00
install -Dm644 ../debian/qgis.desktop "$pkgdir/usr/share/applications/qgis.desktop"
install -Dm644 ../debian/qbrowser.desktop "$pkgdir/usr/share/applications/qbrowser.desktop"
install -dm755 "$pkgdir/usr/share/pixmaps" "$pkgdir/usr/share/mimelnk/application"
2016-03-19 19:57:53 +08:00
for mime in ../debian/mime/application/*.desktop
do install -m644 "$mime" \
"$pkgdir/usr/share/mimelnk/application"
2014-06-28 17:33:08 +08:00
done
2016-03-19 19:57:53 +08:00
ln -s /usr/share/qgis/images/icons/qgis-icon.png "$pkgdir/usr/share/pixmaps/qgis-icon.png"
ln -s /usr/share/qgis/images/icons/qgis-mime-icon.png "$pkgdir/usr/share/pixmaps/qgis-mime-icon.png"
2015-11-30 04:01:37 +08:00
}