summaryrefslogtreecommitdiff
path: root/system/zarfy/zarfy.SlackBuild
diff options
context:
space:
mode:
authorRichard Narron <richard@aaazen.com>2015-02-01 00:23:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-01 00:23:37 +0700
commitdc81844ff9d70d514ed1eb7620e06203ca4ca6ee (patch)
tree96726fee968f51efa393f3205806a9a4d61c8968 /system/zarfy/zarfy.SlackBuild
parent7c7af4dc156231b6e1b16f49f28a2be8d4ae3089 (diff)
downloadslackbuilds-dc81844ff9d70d514ed1eb7620e06203ca4ca6ee.tar.gz
system/zarfy: Fix build outside /tmp/SBo.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/zarfy/zarfy.SlackBuild')
-rw-r--r--system/zarfy/zarfy.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/system/zarfy/zarfy.SlackBuild b/system/zarfy/zarfy.SlackBuild
index 14cd2c0a79..d1b8880555 100644
--- a/system/zarfy/zarfy.SlackBuild
+++ b/system/zarfy/zarfy.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=zarfy
VERSION=${VERSION:-0.1.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -65,12 +65,14 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-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 \
+ \( -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p0 < $CWD/patch-makefile-in
+patch -p0 < $CWD/patch-src-makefile-in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -91,9 +93,7 @@ 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install