summaryrefslogtreecommitdiffstats
path: root/libraries/jbigkit/jbigkit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/jbigkit/jbigkit.SlackBuild')
-rw-r--r--libraries/jbigkit/jbigkit.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/jbigkit/jbigkit.SlackBuild b/libraries/jbigkit/jbigkit.SlackBuild
index af53885516..9b76643d99 100644
--- a/libraries/jbigkit/jbigkit.SlackBuild
+++ b/libraries/jbigkit/jbigkit.SlackBuild
@@ -4,7 +4,7 @@
# Written by Iskar Enev <iskar.enev[@]gmail.com>
PRGNAM=jbigkit
-VERSION=2.0
+VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,11 +42,11 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -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 {} \;
@@ -62,7 +62,7 @@ cd -
# ... and all the rest
make CCFLAGS="$SLKCFLAGS"
-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
# There is no "install" target in the Makefile...