summaryrefslogtreecommitdiff
path: root/misc/rsnapshot/rsnapshot.SlackBuild
diff options
context:
space:
mode:
authorSean Donner <sean.donner@sbcglobal.net>2010-05-13 00:34:30 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:34:30 +0200
commitf9af05beb0293e369d12c1e7fb792298d1b9d124 (patch)
tree1cef85fe9281a468ea6a6544eba85312a130affe /misc/rsnapshot/rsnapshot.SlackBuild
parent5a46f774c87b7a9d47216afac67a3f339db86426 (diff)
downloadslackbuilds-f9af05beb0293e369d12c1e7fb792298d1b9d124.tar.gz
misc/rsnapshot: Updated for version 1.3.1
Diffstat (limited to 'misc/rsnapshot/rsnapshot.SlackBuild')
-rw-r--r--misc/rsnapshot/rsnapshot.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/misc/rsnapshot/rsnapshot.SlackBuild b/misc/rsnapshot/rsnapshot.SlackBuild
index dfa25f61a0..ba57327887 100644
--- a/misc/rsnapshot/rsnapshot.SlackBuild
+++ b/misc/rsnapshot/rsnapshot.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=rsnapshot
VERSION=1.3.1
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -51,9 +56,11 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
make all || exit 1
make install DESTDIR=$PKG || exit 1
@@ -75,4 +82,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}