aboutsummaryrefslogtreecommitdiff
path: root/academic/ngspice/ngspice.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-11-05 16:42:57 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-05 18:53:50 -0600
commit3d882e24e3e4dddb311ed0041933cf0af80a10dd (patch)
tree9da8901ad2df513b9d2446162116de3f3a88cd0a /academic/ngspice/ngspice.SlackBuild
parentbcdd1729c9bb67e53b1d45df65de415c820edb46 (diff)
academic/ngspice: Updated for version 25.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/ngspice/ngspice.SlackBuild')
-rw-r--r--academic/ngspice/ngspice.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild
index cea52c66f133a..bae8ccaa446f8 100644
--- a/academic/ngspice/ngspice.SlackBuild
+++ b/academic/ngspice/ngspice.SlackBuild
@@ -6,7 +6,7 @@
# Set initial variables:
PRGNAM=ngspice
-VERSION=21
+VERSION=${VERSION:-25}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,16 +43,25 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/ng-spice-rework-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
rm -rf $PRGNAM-doc-$VERSION
tar xvf $CWD/$PRGNAM-doc-$VERSION.tar.gz
(cd $PRGNAM-doc-$VERSION
chown -R root:root .
- chmod -R u+w,go+r-w,a-s .
+ find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
)
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
# Fix the lib path to the code modules
if [ "$ARCH" = "x86_64" ]; then