summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcell Meszaros2023-11-12 04:04:59 +0100
committerMarcell Meszaros2023-11-12 04:04:59 +0100
commit343363f3d5fd23f1b4d45c1fc81cb8e142fb7efd (patch)
tree2121fb4e9451888cafdb4de2aa6bcc1685a57a82
parent42c09e1151e2e3fa701d3f5835ef02b88ca73182 (diff)
downloadaur-saga-gis-ltr.tar.gz
turn this into a transitional metapackage
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD55
-rw-r--r--saga-gis-ltr.install19
3 files changed, 33 insertions, 67 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e044c1359c0a..3c65a5a7ad5f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,12 @@
pkgbase = saga-gis-ltr
- pkgdesc = A Geographic Information System (GIS) software with immense capabilities for geodata processing and analysis. Compactible with QGIS
+ pkgdesc = [Meta-PKG] 'saga-gis-ltr' is broken as it's unmaintained since 2018. Migrate to 'saga-gis'
pkgver = 2.3.1
- pkgrel = 1
- url = http://www.saga-gis.org
- arch = i686
- arch = x86_64
+ pkgrel = 2
+ url = https://aur.archlinux.org/packages/saga-gis
+ install = saga-gis-ltr.install
+ arch = any
license = GPL3
- depends = wxgtk
- depends = proj
- depends = gdal
- depends = libtiff
- depends = unixodbc
- depends = jasper
- depends = swig
- optdepends = opencv2
- optdepends = vigra
- optdepends = liblas
- optdepends = libharu
- provides = saga-gis
+ optdepends = saga-gis: migrate to this working, maintained package by installing it
conflicts = saga-gis
- source = https://sourceforge.net/projects/saga-gis/files/SAGA%20-%202/SAGA%202.3.1/saga_2.3.1.tar.gz/download
- md5sums = 035b2054790721028b97766e025bb340
pkgname = saga-gis-ltr
-
diff --git a/PKGBUILD b/PKGBUILD
index 09daefb497b8..c36a44f72536 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,4 @@
-# Maintainer: Patrick Schratz <patrick.schratz@gmail.com>
+# Contributor: Patrick Schratz <patrick.schratz@gmail.com>
# Contributor: Samuel Fernando Mesa Giraldo <samuelmesa@linuxmail.org>
# Contributor: SaultDon <sault.don gmail>
# Contributor: Luigi Ranghetti <luigi.ranghetti@gmail.com>
@@ -6,51 +6,12 @@
# Contributor: Marcelo Avalos Tejeda <marcelo.avalos@gmail.com>
pkgname=saga-gis-ltr
-_pkgname=saga
pkgver=2.3.1
-pkgrel=1
-pkgdesc="A Geographic Information System (GIS) software with immense capabilities for geodata processing and analysis. Compactible with QGIS"
-url="http://www.saga-gis.org"
+pkgrel=2
+pkgdesc="[Meta-PKG] 'saga-gis-ltr' is broken as it's unmaintained since 2018. Migrate to 'saga-gis'"
+url="https://aur.archlinux.org/packages/saga-gis"
license=("GPL3")
-arch=('i686' 'x86_64')
-provides=("saga-gis")
-conflicts=("saga-gis")
-depends=('wxgtk'
- 'proj'
- 'gdal'
- 'libtiff'
- 'unixodbc'
- 'jasper'
- 'swig')
-optdepends=('opencv2'
- 'vigra'
- 'liblas'
- 'libharu')
-source=("https://sourceforge.net/projects/saga-gis/files/SAGA%20-%202/SAGA%202.3.1/saga_2.3.1.tar.gz/download")
-md5sums=('035b2054790721028b97766e025bb340')
-
-build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- autoreconf -i
-
- ./configure --prefix=/usr \
- --enable-debug \
- --enable-shared \
- --enable-python PYTHON_VERSION=2.7 PYTHON=/usr/bin/python2 \
- --with-postgresql=/usr/bin/pg_config \
- CXXFLAGS="`wx-config --version=3.0 --cxxflags`" \
- LIBS="`wx-config --version=3.0 --libs`"
-
- msg "Start compiling ..."
- make -j2
-}
-
-package () {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}" install
-
- install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/src/saga_core/saga_gui/res/saga.png" \
- "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
-}
+arch=(any)
+conflicts=('saga-gis')
+optdepends=('saga-gis: migrate to this working, maintained package by installing it')
+install="${pkgname}.install"
diff --git a/saga-gis-ltr.install b/saga-gis-ltr.install
new file mode 100644
index 000000000000..a04776523114
--- /dev/null
+++ b/saga-gis-ltr.install
@@ -0,0 +1,19 @@
+pre_install() {
+ echo
+ echo "ATTENTION"
+ echo
+ echo "The AUR package 'saga-gis-ltr' has been unmaintained since 2018 and is long broken,"
+ echo "so it has now been removed from AUR."
+ echo
+ echo "Please migrate to the working 'saga-gis' package:"
+ echo "https://aur.archlinux.org/packages/saga-gis"
+ echo
+ echo "Please uninstall 'saga-gis-ltr' before that migration:"
+ echo
+ echo "pacman -Rnsc saga-gis-ltr"
+ echo
+}
+
+pre_upgrade() {
+ pre_install
+}