blob: 30e51d982c6a7c38e760d84562ab0b1571d84721 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Doug Newgard <scimmia at archlinux dot org>
# Contributor: XavierCLL <xavier.corredor.llano (a) gmail.com>
# Contributor: SaultDon <sault.don gmail>
# Contributor: Lantald < lantald at gmx.com >
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
# Contributor: Eric Forgeot < http://esclinux.tk >
# Contributor: Oliver Kuster <olivervbk gmail.com>
pkgname=qgis-grass-plugin
_pkgname=qgis
pkgver=3.16.3
pkgrel=1
pkgdesc='QGIS grass plugin resources.'
url='https://qgis.org/'
license=(GPL)
arch=(x86_64)
# there are probably way more dependencies here, but they should already be included by the packages below..
depends=("qgis>=3.16.3" gdal grass)
makedepends=(cmake txt2tags)
optdepends=()
source=("https://qgis.org/downloads/$_pkgname-$pkgver.tar.bz2")
sha256sums=('fd57314c1913639f02b64df03eef041172aa220f249e318da3849fc71ada4d04')
prefix="/usr"
build() {
mkdir -p build; cd build
cmake -G "Unix Makefiles" "../$_pkgname-$pkgver" \
-DCMAKE_INSTALL_PREFIX="$prefix" \
-DQGIS_MANUAL_SUBDIR=share/man \
-DENABLE_TESTS=FALSE \
-DWITH_INTERNAL_QWTPOLAR=FALSE \
-DWITH_INTERNAL_{HTTPLIB2,JINJA2,MARKUPSAFE,OWSLIB,PYGMENTS,DATEUTIL,PYTZ,YAML,NOSE2,SIX,FUTURE}=FALSE \
-DWITH_GEOREFERENCER=FALSE \
-DWITH_3D=FALSE
make -j $((`nproc` + 2)) grassplugin7 grassprovider7 grassrasterprovider7
}
package() {
cd build
make DESTDIR="$pkgdir" install
keep_paths=(
"lib/libqgisgrass7.so"
"lib/libqgisgrass7.so.$pkgver"
"lib/qgis/grass"
"lib/qgis/plugins/libgrassplugin7.so"
"lib/qgis/plugins/libgrassprovider7.so"
"lib/qgis/plugins/libgrassrasterprovider7.so"
"share/qgis/grass"
#"share/qgis/resources/cpt-city-qgis-min/grass/"
#"share/qgis/python/plugins/processing/algs/grass7/"
)
cd "$pkgdir/$prefix"
find . -print0 2>/dev/null | while IFS= read -r -d $'\0' p ; do
keep=false
for k in ${keep_paths[@]}; do
# check if one path is a subpath of the other
if [[ "./$k" == "$p"* || "$p" == "./$k"* ]] ; then
keep=true
break
fi
done
if $keep; then
echo "keeping:$p"
else
rm -fr "$p" &>/dev/null || true
fi
done
file_count=$(find . | wc -l)
echo "Kept $file_count files."
[[ "$file_count" -eq 1093 ]] || { echo "ERROR: Expected to find 1093 files."; return 1; }
}
|