From 26e03c77aab05b865aaff80a6a35a1acbf0c09c4 Mon Sep 17 00:00:00 2001 From: "R. S. Ananda Murthy" Date: Mon, 28 Jul 2014 11:10:32 +0700 Subject: academic/ngspice: Updated for version 26 + new maintainer. Signed-off-by: Willy Sudiarto Raharjo --- academic/ngspice/ngspice.SlackBuild | 29 +++++++++++++++++++++++------ academic/ngspice/ngspice.info | 14 +++++++------- academic/ngspice/ngspice.png | Bin 0 -> 6882 bytes 3 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 academic/ngspice/ngspice.png diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild index a6be504fea..f26a847ed9 100644 --- a/academic/ngspice/ngspice.SlackBuild +++ b/academic/ngspice/ngspice.SlackBuild @@ -2,11 +2,12 @@ # Slackware build script for ngspice # Written by B. Jogai +# Now maintained by R. S. Ananda Murthy (rsamurti@gmail.com) # Set initial variables: PRGNAM=ngspice -VERSION=${VERSION:-25} +VERSION=${VERSION:-26} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -85,15 +86,16 @@ CFLAGS="$SLKCFLAGS" \ --enable-numparam \ --enable-shared \ --disable-static \ + --enable-x \ + --enable-ndev \ --build=$ARCH-slackware-linux - make make DESTDIR=$PKG install mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 find $PKG/usr/man -type f -exec gzip -9 {} \; @@ -102,10 +104,25 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples cp -a ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ \ INSTALL NEWS README* ../$PRGNAM-doc-$VERSION/*.pdf examples/ \ - xgraph/examples/ \ - $PKG/usr/doc/$PRGNAM-$VERSION/ - + xgraph/examples/ $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps +install -m644 $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png + +mkdir -p $PKG/usr/share/applications +cat < $PKG/usr/share/applications/$PRGNAM.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=Ngspice +Comment=A mixed-level/mixed-signal circuit simulator +Exec=ngspice +Terminal=true +Type=Application +Categories=Other +Icon=ngspice +StartupNotify=true +EOF + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/academic/ngspice/ngspice.info b/academic/ngspice/ngspice.info index c2999e3153..49aaa227ae 100644 --- a/academic/ngspice/ngspice.info +++ b/academic/ngspice/ngspice.info @@ -1,12 +1,12 @@ PRGNAM="ngspice" -VERSION="25" +VERSION="26" HOMEPAGE="http://ngspice.sourceforge.net/" -DOWNLOAD="http://sourceforge.net/projects/ngspice/files/ngspice-25.tar.gz \ - http://sourceforge.net/projects/ngspice/files/ngspice-doc-25.tar.gz" -MD5SUM="0a2c9f377c5da827f774c7b4f9248231 \ - 0e97d62444577ee186f2481f16b27db8" +DOWNLOAD="http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz \ + http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-doc-26.tar.gz" +MD5SUM="7fd9cdd11b1bb109eb48201222de4c50 \ + 6a2acfe2574798dac9d3844dd1750dbb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="B. Jogai" -EMAIL="jogaib comcast {dot} net" +MAINTAINER="R. S. Ananda Murthy" +EMAIL="rsamurti@gmail.com" diff --git a/academic/ngspice/ngspice.png b/academic/ngspice/ngspice.png new file mode 100644 index 0000000000..83b6452559 Binary files /dev/null and b/academic/ngspice/ngspice.png differ -- cgit v1.2.3