diff options
Diffstat (limited to 'academic/ngspice/ngspice.SlackBuild')
-rw-r--r-- | academic/ngspice/ngspice.SlackBuild | 29 |
1 files changed, 23 insertions, 6 deletions
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 <jogaib {at} comcast [dot] net> +# 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 <<EOF > $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} |