aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--academic/ngspice/ngspice.SlackBuild76
-rw-r--r--academic/ngspice/ngspice.info12
2 files changed, 51 insertions, 37 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild
index 26525cf138a40..988fcba6f0adf 100644
--- a/academic/ngspice/ngspice.SlackBuild
+++ b/academic/ngspice/ngspice.SlackBuild
@@ -7,7 +7,7 @@
# Set initial variables:
PRGNAM=ngspice
-VERSION=${VERSION:-31}
+VERSION=${VERSION:-32}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
@@ -55,38 +55,46 @@ find -L . \
# Fix the lib path to the code modules
if [ "$ARCH" = "x86_64" ]; then
- sed -i "s%/lib/%/lib${LIBDIRSUFFIX}/%g" src/spinit.in
+ 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
+mkdir release
+cd release
+
+ ../configure \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --enable-xspice \
+ --enable-cider \
+ --enable-openmp \
+ --with-x \
+ --disable-debug \
+ --with-ngshared
+
make
CFLAGS="$SLKCFLAGS" \
- ./configure \
- --prefix=/usr \
- --bindir=/usr/bin \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --disable-debug \
- --with-readline=yes \
- --enable-xspice \
- --enable-cider \
- --enable-shared \
- --disable-static \
- --enable-ndev \
- --enable-openmp \
- --build=$ARCH-slackware-linux
+ ../configure --prefix=/usr \
+ --bindir=/usr/bin \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --disable-debug \
+ --enable-xspice \
+ --enable-cider \
+ --enable-shared \
+ --disable-static \
+ --enable-ndev \
+ --enable-openmp \
+ --with-x \
+ --build=$ARCH-slackware-linux
+
make
make DESTDIR=$PKG install
+cd ..
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -94,17 +102,23 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
-cp -a ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ \
- INSTALL NEWS README* examples/ $PKG/usr/doc/$PRGNAM-$VERSION/
+
+cp -a \
+ ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ \
+ INSTALL 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
+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"
-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
+install -Dm644 $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
diff --git a/academic/ngspice/ngspice.info b/academic/ngspice/ngspice.info
index cc47ace1aeba5..bcfd3cf9bc368 100644
--- a/academic/ngspice/ngspice.info
+++ b/academic/ngspice/ngspice.info
@@ -1,12 +1,12 @@
PRGNAM="ngspice"
-VERSION="31"
+VERSION="32"
HOMEPAGE="http://ngspice.sourceforge.net/"
-DOWNLOAD="https://sourceforge.net/projects/ngspice/files/ng-spice-rework/31/ngspice-31.tar.gz \
- https://sourceforge.net/projects/ngspice/files/ng-spice-rework/31/ngspice-31-manual.pdf"
-MD5SUM="f50b4d8c6ecbf01acf121cd9edc3baab \
- cd746e20a1a23889acab51d918cc1f77"
+DOWNLOAD="https://sourceforge.net/projects/ngspice/files/ng-spice-rework/32/ngspice-32.tar.gz \
+ https://sourceforge.net/projects/ngspice/files/ng-spice-rework/32/ngspice-32-manual.pdf"
+MD5SUM="aa1bd834d0fb38a343ff25098248e594 \
+ a00d38daf4edbfb0bd8d6a9bcc7efb2d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="openmpi"
MAINTAINER="R. S. Ananda Murthy"
EMAIL="rsamurti@gmail.com"