aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-03-24 12:31:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-04-05 18:18:59 +0000
commitb3bc482cad1fea076e747171c883afd393a843af (patch)
tree40015cab26865daf2776b34d88db8e40fd229af7
parenta85dc80d1993f2f4a419af07ea8cf84768c340d0 (diff)
downloadaports-b3bc482cad1fea076e747171c883afd393a843af.tar.gz
aports-b3bc482cad1fea076e747171c883afd393a843af.tar.bz2
aports-b3bc482cad1fea076e747171c883afd393a843af.tar.xz
testing/kicad: rebuild against python 3.9
-rw-r--r--testing/kicad/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/testing/kicad/APKBUILD b/testing/kicad/APKBUILD
index 7582576dcf..74920a0d34 100644
--- a/testing/kicad/APKBUILD
+++ b/testing/kicad/APKBUILD
@@ -2,7 +2,7 @@
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=kicad
pkgver=5.1.9
-pkgrel=0
+pkgrel=1
pkgdesc="A Cross Platform and Open Source Electronics Design Automation Suite"
url="https://kicad-pcb.org/"
arch="all !s390x !mips !mips64 !armv7" # No support for s390x in libcontext (shipped with kicad) broken on mips
@@ -98,7 +98,8 @@ package() {
cd build
make DESTDIR="$pkgdir" install
- chrpath -d "$pkgdir"/usr/lib/python3.8/site-packages/_pcbnew.so
+ local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
+ chrpath -d "$pkgdir/$sitedir"/_pcbnew.so
}
i18n() {
@@ -115,7 +116,8 @@ opencascade() {
# Remove documentation. $pkgname-doc is build from the root package.
rm -rf "$subpkgdir"/usr/shared/doc
- chrpath -d "$subpkgdir"/usr/lib/python3.8/site-packages/_pcbnew.so
+ local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
+ chrpath -d "$subpkgdir/$sitedir"/_pcbnew.so
}
sha512sums="1b0676c8e375578b6d06836af35dd2ceb5e35b585e12660fa22461139e2e3af2d90fe2d5787ff8eab111bdba8fbfcc5446a8aa467e54f1372351c5a975df477f kicad-5.1.9.tar.gz