summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2014-07-28 11:10:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-28 11:10:32 +0700
commit26e03c77aab05b865aaff80a6a35a1acbf0c09c4 (patch)
tree20a2d8aff8209253c006d44942443dc714150c84 /academic
parentd48595626060455d1222ceecd7e5ba9f0e1ec9c7 (diff)
downloadslackbuilds-26e03c77aab05b865aaff80a6a35a1acbf0c09c4.tar.gz
academic/ngspice: Updated for version 26 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/ngspice/ngspice.SlackBuild29
-rw-r--r--academic/ngspice/ngspice.info14
-rw-r--r--academic/ngspice/ngspice.pngbin0 -> 6882 bytes
3 files changed, 30 insertions, 13 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}
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 <at> 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
--- /dev/null
+++ b/academic/ngspice/ngspice.png
Binary files differ