summaryrefslogtreecommitdiff
path: root/academic/ngspice/ngspice.SlackBuild
diff options
context:
space:
mode:
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 cea52c66f1..bae8ccaa44 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