mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:37:15 +08:00
qgis: update to 2.18.4
This commit is contained in:
parent
fb01c56d8a
commit
4853d77401
3
qgis/.directory
Normal file
3
qgis/.directory
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[Dolphin]
|
||||||
|
Timestamp=2017,3,11,11,26,6
|
||||||
|
Version=3
|
@ -1,29 +1,40 @@
|
|||||||
pkgname=qgis
|
pkgname=qgis
|
||||||
pkgver=2.18.0
|
pkgver=2.18.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='A Geographic Information System (GIS) that supports vector, raster and database formats'
|
pkgdesc='A Geographic Information System (GIS) that supports vector, raster and database formats'
|
||||||
url='http://qgis.org/'
|
url='http://qgis.org/'
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
depends=('bison' 'cfitsio' 'curl' 'flex' 'gdal' 'jasper' 'libmariadbclient' 'libspatialite' 'python2-pyspatialite' 'libxslt'
|
depends=('gcc-libs' 'glibc' 'gdal' 'proj' 'geos' 'expat' 'libspatialite' 'spatialindex' 'postgresql-libs' 'qca' 'qt' 'qwt6' 'sqlite3' 'python2' 'qscintilla-python2' 'pyqt4-python2' 'python2-pyspatialite')
|
||||||
'postgresql-libs' 'pyqt4-python2' 'python2' 'qscintilla-python2' 'python2-psycopg2'
|
makedepends=('cmake' 'flex' 'bison' 'fcgi' 'grass' 'gsl' 'postgis' 'python2-sip' 'python2-pip' 'python2-setuptools')
|
||||||
'qca' 'qt' 'qwt6' 'spatialindex' 'sqlite3')
|
|
||||||
makedepends=('cmake' 'fcgi' 'grass' 'gsl' 'netcdf' 'postgis' 'python2-sip')
|
|
||||||
optdepends=('fcgi: qgis mapserver'
|
optdepends=('fcgi: qgis mapserver'
|
||||||
'grass: grass plugin'
|
'grass: grass plugin'
|
||||||
'gsl: georeferencer'
|
'gsl: georeferencer'
|
||||||
'python2-sip: python-support'
|
'python2-sip: python-support'
|
||||||
'postgis: postgis support and SPIT plugin')
|
'postgis: postgis support and SPIT plugin')
|
||||||
source=("http://qgis.org/downloads/$pkgname-$pkgver.tar.bz2")
|
source=("http://qgis.org/downloads/$pkgname-$pkgver.tar.bz2")
|
||||||
sha1sums=('37e93d10369a0d33bcfe290a1d917b543b9b4c4c')
|
sha256sums=('737827fd4c63c859a0ea7badd36ebcba970ca7c0a8feda4b10c0de0ed52546e8')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
|
|
||||||
|
# Fix references to "python"
|
||||||
|
sed -i 's/\(env \|\/usr\/bin\/\)python$/&2/' $(find . -iname "*.py")
|
||||||
|
|
||||||
|
# Remove mime types already defined by freedesktop.org
|
||||||
|
sed -e '/type="image\/tiff"/,/<\/mime-type>/d' \
|
||||||
|
-e '/type="image\/jpeg"/,/<\/mime-type>/d' \
|
||||||
|
-e '/type="image\/jp2"/,/<\/mime-type>/d' \
|
||||||
|
-e '/type="application\/x-adobe-mif"/,/<\/mime-type>/d' \
|
||||||
|
-i debian/qgis.xml
|
||||||
|
|
||||||
|
|
||||||
[[ -d build ]] || mkdir build
|
[[ -d build ]] || mkdir build
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver/build
|
cd $srcdir/$pkgname-$pkgver/build
|
||||||
|
|
||||||
cmake -G "Unix Makefiles" ../ \
|
cmake -G "Unix Makefiles" ../ \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
@ -41,17 +52,25 @@ package() {
|
|||||||
cd $pkgname-$pkgver/build
|
cd $pkgname-$pkgver/build
|
||||||
make DESTDIR=$pkgdir install
|
make DESTDIR=$pkgdir install
|
||||||
|
|
||||||
|
# install python2-psycopg2
|
||||||
|
pip2 install --target=$pkgdir/usr/share/qgis/python psycopg2
|
||||||
|
|
||||||
|
|
||||||
# create a more user-friendly application name link
|
# create a more user-friendly application name link
|
||||||
ln -s /usr/bin/qgis "$pkgdir/usr/bin/quantum-gis"
|
ln -s /usr/bin/qgis "$pkgdir/usr/bin/quantum-gis"
|
||||||
|
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# install some freedesktop.org compatibility
|
# install some freedesktop.org compatibility
|
||||||
install -Dm644 ../debian/qgis.desktop "$pkgdir/usr/share/applications/qgis.desktop"
|
install -Dm644 debian/{qgis,qbrowser}.desktop -t "$pkgdir/usr/share/applications/"
|
||||||
install -Dm644 ../debian/qbrowser.desktop "$pkgdir/usr/share/applications/qbrowser.desktop"
|
for prog in qgis qbrowser; do
|
||||||
install -dm755 "$pkgdir/usr/share/pixmaps" "$pkgdir/usr/share/mimelnk/application"
|
install -Dm644 images/icons/${prog}_icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$prog.svg"
|
||||||
for mime in ../debian/mime/application/*.desktop
|
done
|
||||||
do install -m644 "$mime" \
|
|
||||||
"$pkgdir/usr/share/mimelnk/application"
|
# install mime information and icons
|
||||||
done
|
install -Dm644 debian/qgis.xml "$pkgdir/usr/share/mime/packages/qgis.xml"
|
||||||
ln -s /usr/share/qgis/images/icons/qgis-icon.png "$pkgdir/usr/share/pixmaps/qgis-icon.png"
|
install -Dm644 images/icons/qgis-mime-icon.png "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes/qgis-mime.png"
|
||||||
ln -s /usr/share/qgis/images/icons/qgis-mime-icon.png "$pkgdir/usr/share/pixmaps/qgis-mime-icon.png"
|
for type in asc ddf dem dt0 dxf gml img mime mldata qgs qlr qml qpt shp sqlite; do
|
||||||
|
install -Dm644 images/icons/qgis_${type}_icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes/qgis-$type.svg"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user