academic/ngspice: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
R. S. Ananda Murthy 2019-02-08 20:58:29 +07:00 committed by Willy Sudiarto Raharjo
parent f294b9c2f2
commit c727d58858
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -1,6 +1,6 @@
#!/bin/sh
# Slackware build script for ngspice
# Slackware build script for ngspice and libngspice
# Written by B. Jogai <jogaib {at} comcast [dot] net>
# Now maintained by R. S. Ananda Murthy (rsamurti@gmail.com)
@ -8,7 +8,7 @@
PRGNAM=ngspice
VERSION=${VERSION:-30}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -58,6 +58,16 @@ if [ "$ARCH" = "x86_64" ]; then
sed -i "s%/lib/%/lib${LIBDIRSUFFIX}/%g" src/spinit.in
fi
./configure --prefix=/usr \
--mandir=/usr/man \
--infodir=/usr/info \
--with-readline=yes \
--enable-xspice \
--enable-cider \
--enable-openmp \
--with-ngshared
make
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@ -71,8 +81,8 @@ CFLAGS="$SLKCFLAGS" \
--enable-cider \
--enable-shared \
--disable-static \
--with-ngshared \
--enable-ndev \
--enable-openmp \
--build=$ARCH-slackware-linux
make
make DESTDIR=$PKG install
@ -89,6 +99,10 @@ cp -a ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ \
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 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"
mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
install -m644 $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png