From c4770a30f0e123511bf89a04445704c1f100d463 Mon Sep 17 00:00:00 2001 From: Michael Bueker Date: Thu, 13 May 2010 00:37:05 +0200 Subject: network/lurc: Updated for version 0.0.5.4 --- network/lurc/lurc.SlackBuild | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'network/lurc/lurc.SlackBuild') 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} -- cgit v1.2.3