aboutsummaryrefslogtreecommitdiff
path: root/system/rdiff-backup/rdiff-backup.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/rdiff-backup/rdiff-backup.SlackBuild')
-rw-r--r--system/rdiff-backup/rdiff-backup.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/system/rdiff-backup/rdiff-backup.SlackBuild b/system/rdiff-backup/rdiff-backup.SlackBuild
index 84f6cff150c7d..1c3a983b22313 100644
--- a/system/rdiff-backup/rdiff-backup.SlackBuild
+++ b/system/rdiff-backup/rdiff-backup.SlackBuild
@@ -24,13 +24,13 @@
# Modified by the SlackBuilds.org project
PRGNAM=rdiff-backup
-VERSION=1.2.5
-ARCH=noarch
+VERSION=1.2.8
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
TMP=${TMP:-/tmp/SBo}
-CWD=$(pwd)
+CWD=$(pwd)
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -43,14 +43,14 @@ cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R a-s,u+rw,go-w+r .
-sed -i 's|share/man/|man/|g' setup.py
-python setup.py install --prefix=/usr --root=$PKG
+sed -i 's|share/man/|man/|g' setup.py || exit 1
+python setup.py install --prefix=/usr --root=$PKG || exit 1
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
)
( cd $PKG/usr/man
@@ -68,4 +68,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}