diff options
Diffstat (limited to 'network/lurc/lurc.SlackBuild')
-rw-r--r-- | network/lurc/lurc.SlackBuild | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/network/lurc/lurc.SlackBuild b/network/lurc/lurc.SlackBuild index 0804b797326c6..62539f086ccb5 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} |