diff options
author | R. S. Ananda Murthy <rsamurti@gmail.com> | 2020-05-30 11:42:44 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-01 08:46:35 +0700 |
commit | 7c2db341dfdcd1ab223b04fa9faf54b3fb52cf3d (patch) | |
tree | 1cf6e767980706cf68cf5e17db637977f41cf56f /academic | |
parent | 76f15a051b52747efe6d009c62fe497732d19894 (diff) | |
download | slackbuilds-7c2db341dfdcd1ab223b04fa9faf54b3fb52cf3d.tar.gz |
academic/ngspice: Updated for version 32.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/ngspice/ngspice.SlackBuild | 76 | ||||
-rw-r--r-- | academic/ngspice/ngspice.info | 12 |
2 files changed, 51 insertions, 37 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild index 26525cf138..988fcba6f0 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 cc47ace1ae..bcfd3cf9bc 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" |