Commit 74cfa5e0 authored by Francesco Marinucci's avatar Francesco Marinucci

Merge branch 'master' of code.chakralinux.org:chakra/packages/desktop

parents 71cf9768 f6cc0c31
Pipeline #1742 failed with stages
in 21 seconds
# Contributions from AUR: https://aur.archlinux.org/packages/grass70-svn/
pkgname=grass
pkgver=7.2.2
pkgver=7.4.2
pkgrel=1
_shortver=${pkgver%.*}; _shortver=${_shortver/./}
pkgdesc="GRASS GIS: geospatial data management and analysis, image processing, graphics/maps production, spatial modeling and visualization."
......@@ -21,7 +21,7 @@ optdepends=('r: R language interface; see http://grasswiki.osgeo.org/wiki/R_stat
'lapack: required for GMATH library'
'lesstif: motif support')
source=("http://grass.osgeo.org/grass$_shortver/source/${pkgname}-${pkgver}.tar.gz")
sha1sums=('effdea8179708c7bea5ce46cc5de370f89db4576')
sha1sums=('34135720f473a21a569fad1a71608d9cf8ec43d9')
prepare() {
cd $pkgname-$pkgver
......
pkgname=libspatialite
pkgver=4.3.0a
pkgrel=2
pkgrel=3
pkgdesc="SQLite extension to support spatial data types and operations"
arch=('x86_64')
url="https://www.gaia-gis.it/fossil/libspatialite/index"
license=('MPL')
depends=('geos' 'proj' 'sqlite3' 'freexl')
options=('!libtool')
depends=('geos' 'proj' 'sqlite' 'freexl')
source=("http://www.gaia-gis.it/gaia-sins/$pkgname-$pkgver.tar.gz")
md5sums=('6b380b332c00da6f76f432b10a1a338c')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --enable-geosadvanced
./configure --prefix=/usr --enable-geosadvanced --enable-static=no
make
}
......
pkgname=qgis
pkgver=3.4.0
pkgrel=1
pkgdesc='A Geographic Information System (GIS) that supports vector, raster and database formats'
url='http://qgis.org/'
license=('GPL')
arch=('x86_64')
depends=('gdal' 'libspatialite' 'spatialindex' 'qtkeychain' 'qca-qt5' 'qt5-3d' 'qt5-webkit' 'qwt6' 'sqlite' 'python3'
'libzip' 'python3-qscintilla-qt5' 'proj' 'python3-pyqt5')
makedepends=('cmake' 'fcgi' 'gsl' 'python3-six' 'qt5-tools' 'sip' 'txt2tags')
optdepends=('fcgi: qgis mapserver'
'grass: grass plugin'
'gsl: georeferencer'
'postgis: postgis support and SPIT plugin'
'python-jinja: MetaSearch plugin')
pkgdesc='Geographic Information System (GIS) that supports vector, raster & database formats'
url='https://qgis.org/'
license=(GPL)
arch=(x86_64)
depends=(gdal hicolor-icon-theme libzip python3-qscintilla-qt5 qca
qt5-3d qt5-webkit qtkeychain qt5-serialport
spatialindex python3-sip qt5-svg qwt proj)
makedepends=(cmake fcgi gsl python3-six qt5-tools sip grass opencl-headers)
optdepends=('fcgi: Map server'
'gpsbabel: GPS Tools plugin'
'gsl: Georeferencer plugin'
'python3-gdal: DB Manager plugin; Processing plugin'
'python3-jinja: MetaSearch plugin'
'python3-owslib: MetaSearch plugin'
'python3-psycopg2: DB Manager plugin; Processing plugin'
'python3-pygments: MetaSearch plugin'
'python3-numpy: Processing plugin'
'python3-yaml: Processing plugin')
source=("https://qgis.org/downloads/$pkgname-$pkgver.tar.bz2")
sha256sums=('b63a6ebbd4e4afb2820887b18b0aa41e3c7862f7fbdc8a121d6fcd75f0321e98')
prepare() {
cd $pkgname-$pkgver
# # Fix references to "python"
# sed -i 's/\(env \|\/usr\/bin\/\)python$/&2/' $(find . -iname "*.py")
# Find osgQt
sed -e 's/osgQt5 osgQt/osgQt/' \
-e 's/osgQt5d osgQtd/osgQt/' \
-i src/plugins/globe/CMakeModules/FindOSG.cmake
sed -e 's,qca-qt5,qca,' -i cmake/FindQCA.cmake
# Remove mime types already defined by freedesktop.org
sed -e '/type="image\/tiff"/,/<\/mime-type>/d' \
......@@ -28,46 +38,33 @@ prepare() {
-e '/type="image\/jp2"/,/<\/mime-type>/d' \
-e '/type="application\/x-adobe-mif"/,/<\/mime-type>/d' \
-i debian/qgis.xml
[[ -d build ]] || mkdir build
}
build() {
cd $pkgname-$pkgver/build
cmake -G "Unix Makefiles" ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_GRASS=OFF \
-DGRASS_PREFIX=/opt/grass \
-DGRASS_INCLUDE_DIR=/opt/grass/include/ \
-DQGIS_MANUAL_SUBDIR=share/man \
-DWITH_3D=TRUE \
-DWITH_SERVER=TRUE \
-DWITH_CUSTOM_WIDGETS=TRUE \
-DBINDINGS_GLOBAL_INSTALL=TRUE \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DENABLE_TESTS=FALSE \
-DCMAKE_SKIP_RPATH=TRUE
-DQGIS_MANUAL_SUBDIR=share/man \
-DWITH_QWTPOLAR=TRUE
make
# Rebuild srs database, QGIS distributes an old, buggy one
LD_LIBRARY_PATH="$PWD/output/lib/" make synccrsdb
mv /tmp/srs.db ../resources/
}
package() {
cd $pkgname-$pkgver/build
make DESTDIR=$pkgdir install
# create a more user-friendly application name link
ln -s /usr/bin/qgis "$pkgdir/usr/bin/quantum-gis"
cd ..
# install some freedesktop.org compatibility
install -Dm644 debian/qgis.desktop -t "$pkgdir/usr/share/applications/"
for prog in qgis qbrowser; do
install -Dm644 images/icons/${prog}_icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$prog.svg"
done
# install mime information and icons
install -Dm644 debian/qgis.xml "$pkgdir/usr/share/mime/packages/qgis.xml"
install -Dm644 images/icons/qgis-mime-icon.png "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes/qgis-mime.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
cd $pkgname-$pkgver/build
make DESTDIR="$pkgdir" install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment