summaryrefslogtreecommitdiff
path: root/network/lurc/lurc.SlackBuild
diff options
context:
space:
mode:
authorMichael Bueker <m.bueker@berlin.de>2010-05-13 00:37:05 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:37:05 +0200
commitc4770a30f0e123511bf89a04445704c1f100d463 (patch)
treedfc923315d453eed93f8835d723b6dc128f68f43 /network/lurc/lurc.SlackBuild
parent7f3622f1f2a1d0ca4fcb410b4536d9a3c543c4b7 (diff)
downloadslackbuilds-c4770a30f0e123511bf89a04445704c1f100d463.tar.gz
network/lurc: Updated for version 0.0.5.4
Diffstat (limited to 'network/lurc/lurc.SlackBuild')
-rw-r--r--network/lurc/lurc.SlackBuild26
1 files changed, 16 insertions, 10 deletions
diff --git a/network/lurc/lurc.SlackBuild b/network/lurc/lurc.SlackBuild
index 0804b79732..62539f086c 100644
--- a/network/lurc/lurc.SlackBuild
+++ b/network/lurc/lurc.SlackBuild
@@ -34,18 +34,23 @@ 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
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -53,20 +58,21 @@ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- . || exit 1
+ .
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make install DESTDIR=$PKG
-strip --strip-unneeded $PKG/usr/bin/lurc 2>/dev/null
+strip --strip-unneeded $PKG/usr/bin/lurc 2>/dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS BACKPORTS BUGS COPYING ChangeLog CodingStyle FAQ INSTALL NEWS \
- OldNEWS README TODO UnfixedBUGS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS BACKPORTS *BUGS COPYING ChangeLog CodingStyle FAQ INSTALL *NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
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}