summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/pforth/pforth.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/development/pforth/pforth.SlackBuild b/development/pforth/pforth.SlackBuild
index 4a58e68292..b2fda7c124 100644
--- a/development/pforth/pforth.SlackBuild
+++ b/development/pforth/pforth.SlackBuild
@@ -6,7 +6,7 @@
# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=pforth
-VERSION=v27
+VERSION=${VERSION:-v27}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -48,11 +48,11 @@ rm -rf ${PRGNAM}_$VERSION __MACOSX
unzip "$CWD/${PRGNAM}_${SRCVERSION}.zip"
cd ${PRGNAM}_${VERSION}/build/unix
chown -R root:root .
-find . \
- \( -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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \;
# pforth.dic into "share"
sed -i "s/pforth.dic/\/usr\/share\/pforth\/${VERSION}\/pforth.dic/g" ../../csrc/pf_main.c
@@ -61,7 +61,7 @@ patch -p0 < $CWD/pforth-build.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make all DESTDIR=$PKG
+make all DESTDIR=$PKG -j1
find $PKG/usr/bin | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true