summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author R. S. Ananda Murthy2021-03-11 04:46:24 +0100
committer Willy Sudiarto Raharjo2021-03-13 03:02:37 +0100
commit3dc772977117bcc2b4d801b98d18a0fc76774531 (patch)
tree20ef32214f69dbb44c51c79d4d63135beb9202b5
parent9cdf6e7378e769ffe6fabdd888e941df09a39b21 (diff)
downloadslackbuilds-3dc772977117bcc2b4d801b98d18a0fc76774531.tar.gz
academic/ngspice: KiCAD build fixes.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/ngspice/ngspice.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild
index b30fd4d99e..964f6d0aaf 100644
--- a/academic/ngspice/ngspice.SlackBuild
+++ b/academic/ngspice/ngspice.SlackBuild
@@ -8,7 +8,7 @@
PRGNAM=ngspice
VERSION=${VERSION:-34}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -93,6 +93,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 \
@@ -112,12 +114,18 @@ 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
+# The shared library enabled by "--with-ngshared"
install -Dm755 ./release/src/.libs/libngspice.so.0.0.0 \
"$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0.0.0"
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 $PKG/usr/include/config.h $PKG/usr/include/ngspice/
+
install -Dm644 $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
mkdir -p $PKG/usr/share/applications