diff options
author | kikislater | 2023-05-16 15:22:57 +0400 |
---|---|---|
committer | kikislater | 2023-05-16 15:22:57 +0400 |
commit | 04ba69eed5671d5fa5968641870a3f252006cb52 (patch) | |
tree | ca287c9b103b9dcfb2c1d39141a4ababb6d97156 | |
parent | 0710d38f75f2f5c9f013df07665d372a162e4c8d (diff) | |
download | aur-04ba69eed5671d5fa5968641870a3f252006cb52.tar.gz |
Auto find site-packages
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = grass pkgdesc = Geospatial data management and analysis, image processing, graphics/maps production, spatial modeling and visualization pkgver = 8.2.1 - pkgrel = 2 + pkgrel = 3 url = http://grass.osgeo.org/ arch = i686 arch = x86_64 @@ -4,7 +4,7 @@ pkgname=grass pkgver=8.2.1 -pkgrel=2 +pkgrel=3 _shortver=${pkgver%.*}; _shortver=${_shortver/./} pkgdesc='Geospatial data management and analysis, image processing, graphics/maps production, spatial modeling and visualization' arch=('i686' 'x86_64') @@ -62,7 +62,9 @@ package() { etc/fontcap \ "$pkgdir/usr/bin/grass" + # Get python lib path + pylib=$(python -c "import sys; print(sys.path[len(sys.path)-1])") # Link pygrass to main python site-packages - mkdir -p "$pkgdir/usr/lib/python3.10/site-packages/" - ln -s "$pkgdir/opt/grass/etc/python/grass" "$pkgdir/usr/lib/python3.10/site-packages/grass" + mkdir -p "$pkgdir$pylib" + ln -s "$pkgdir/opt/grass/etc/python/grass" "$pkgdir$pylib" } |