aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2020-12-01 21:01:50 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-12-01 23:31:54 +0000
commit29e7e9afaf3626d78281ba6d85e646629d16870e (patch)
treeb9a5d54a5e8c9c2da9ec557b8a25c0a58e2db81e
parent842ae5ea3cf636938abb9e04098fdd88fca32db4 (diff)
downloadaports-29e7e9afaf3626d78281ba6d85e646629d16870e.tar.gz
aports-29e7e9afaf3626d78281ba6d85e646629d16870e.tar.bz2
aports-29e7e9afaf3626d78281ba6d85e646629d16870e.tar.xz
testing/ngspice: upgrade to 33
-rw-r--r--testing/ngspice/APKBUILD12
-rw-r--r--testing/ngspice/ngspice.pc12
2 files changed, 22 insertions, 2 deletions
diff --git a/testing/ngspice/APKBUILD b/testing/ngspice/APKBUILD
index 35ba19d833..85f12425f0 100644
--- a/testing/ngspice/APKBUILD
+++ b/testing/ngspice/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=ngspice
-pkgver=31
+pkgver=33
pkgrel=0
pkgdesc="open source spice simulator for electric and electronic circuits"
url="http://ngspice.sourceforge.net/"
@@ -11,8 +11,14 @@ depends="python3"
subpackages="$pkgname-doc $pkgname-dev"
source="
https://downloads.sourceforge.net/project/$pkgname/ng-spice-rework/$pkgver/$pkgname-$pkgver.tar.gz
+ $pkgname.pc
"
+prepare() {
+ default_prepare
+ sed -e "s/@PKGVER@/$pkgver/" -i "$srcdir"/$pkgname.pc
+}
+
build() {
./configure \
--prefix=/usr \
@@ -49,6 +55,8 @@ package() {
install -Dm755 src/.libs/libngspice.so.0.0.0 "$pkgdir/usr/lib/libngspice.so.0.0.0"
ln -s "libngspice.so.0.0.0" "$pkgdir/usr/lib/libngspice.so.0"
ln -s "libngspice.so.0.0.0" "$pkgdir/usr/lib/libngspice.so"
+ install -Dm644 "$srcdir"/$pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
}
-sha512sums="448024f398d267911d5d2a48da03eb0d87ba1133ce39d5132bd318dde8ad359d19c7f85f6b4ec88c08b081c9140f7b931334d84173019a22aa2ac98482bd7d5d ngspice-31.tar.gz"
+sha512sums="895e39f7de185df18bf443a9fa5691cdb3bf0a5091d9860d20ccb02254ef396a4cca5a1c8bf4ba19a03783fc89bb86649218cee977b0fe4565d3c84548943c09 ngspice-33.tar.gz
+211321d3c56f06a58ce500807284657294beef1e712c2ce3e9b2253e622c6882cf1f1233fa18427902cac5bd9d31f48c7be64a03bc6e2705d3f10f4752c41b7c ngspice.pc"
diff --git a/testing/ngspice/ngspice.pc b/testing/ngspice/ngspice.pc
new file mode 100644
index 0000000000..bd4989a5a3
--- /dev/null
+++ b/testing/ngspice/ngspice.pc
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/ngspice
+modules=1
+
+Name: ngspice
+Version: @PKGVER@
+Description: Open Source Spice Simulator for Electric and Electronic Circuits.
+Requires:
+Libs: -L${libdir} -lngspice
+Cflags: -I${includedir}