summaryrefslogtreecommitdiffstats
path: root/academic/ngspice
diff options
context:
space:
mode:
Diffstat (limited to 'academic/ngspice')
-rw-r--r--academic/ngspice/ngspice.SlackBuild38
-rw-r--r--academic/ngspice/ngspice.info12
2 files changed, 34 insertions, 16 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild
index b30fd4d99e..db12c3aab6 100644
--- a/academic/ngspice/ngspice.SlackBuild
+++ b/academic/ngspice/ngspice.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ngspice and libngspice
# Written by B. Jogai <jogaib {at} comcast [dot] net>
@@ -6,10 +6,13 @@
# Set initial variables:
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ngspice
-VERSION=${VERSION:-34}
-BUILD=${BUILD:-4}
+VERSION=${VERSION:-42}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -19,7 +22,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -93,6 +100,8 @@ CFLAGS="$SLKCFLAGS" \
make
make DESTDIR=$PKG install
+# This has installed the configure output file as /usr/include/config.h.
+
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -105,18 +114,27 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
cp -a \
ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ \
- INSTALL NEWS README* examples/ \
+ NEWS README* examples/ \
$PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/$PRGNAM-$VERSION-manual.pdf \
> $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-$VERSION-manual.pdf
-install -Dm755 ./release/src/.libs/libngspice.so.0.0.0 \
- "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0.0.0"
+# The shared library enabled by "--with-ngshared"
+install -Dm755 ./release/src/.libs/libngspice.so.0.0.9 \
+ "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0.0.9"
+
+strip -s $PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0.0.9
+
+ln -s "libngspice.so.0.0.9" "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0"
+ln -s "libngspice.so.0.0.9" "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so"
-ln -s "libngspice.so.0.0.0" "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0"
-ln -s "libngspice.so.0.0.0" "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so"
+# The include file needed to use the shared library enabled by "--with-ngshared"
+install -Dm644 ./src/include/ngspice/sharedspice.h $PKG/usr/include/ngspice/sharedspice.h
+# Move the configure output file.
+mv $TMP/$PRGNAM-$VERSION/release/src/include/ngspice/config.h $PKG/usr/include/ngspice/
+chmod 644 $PKG/usr/doc/ngspice-42/examples/klu/Circuits/libraries/*.lib
install -Dm644 $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
@@ -128,4 +146,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/academic/ngspice/ngspice.info b/academic/ngspice/ngspice.info
index 23f93fdba1..d7fa1f2449 100644
--- a/academic/ngspice/ngspice.info
+++ b/academic/ngspice/ngspice.info
@@ -1,12 +1,12 @@
PRGNAM="ngspice"
-VERSION="34"
+VERSION="42"
HOMEPAGE="http://ngspice.sourceforge.net/"
-DOWNLOAD="https://sourceforge.net/projects/ngspice/files/ng-spice-rework/34/ngspice-34.tar.gz \
- https://sourceforge.net/projects/ngspice/files/ng-spice-rework/34/ngspice-34-manual.pdf"
-MD5SUM="e88377ff1e5a466dcd240fa235de7551 \
- ea1bfad9fccd20d58007898bc5f5a15d"
+DOWNLOAD="https://sourceforge.net/projects/ngspice/files/ng-spice-rework/42/ngspice-42.tar.gz \
+ https://sourceforge.net/projects/ngspice/files/ng-spice-rework/42/ngspice-42-manual.pdf"
+MD5SUM="84ab9e67127f9732639195dd63b98a5e \
+ f1b1bf8a0bd18af216cbe0ccdbacb47f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="openmpi"
+REQUIRES=""
MAINTAINER="R. S. Ananda Murthy"
EMAIL="rsamurti@gmail.com"