From d5ee0b74f5617f236154d38ca4e636ef836fe474 Mon Sep 17 00:00:00 2001 From: Andre Barboza Date: Wed, 16 Jun 2010 14:10:09 -0500 Subject: network/knemo: Updated for version 0.6.2. Signed-off-by: Erik Hanson --- network/knemo/knemo.SlackBuild | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'network/knemo/knemo.SlackBuild') diff --git a/network/knemo/knemo.SlackBuild b/network/knemo/knemo.SlackBuild index 1e4e162f1c..bf215fcf2d 100644 --- a/network/knemo/knemo.SlackBuild +++ b/network/knemo/knemo.SlackBuild @@ -5,19 +5,17 @@ # Modified by the SlackBuilds.org project # Update by: Andre Barboza -set -e +set -e PRGNAM=knemo -VERSION=0.5.80 +VERSION=0.6.2 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -31,25 +29,25 @@ DOCFILES="AUTHORS COPYING ChangeLog INSTALL README TODO" if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" -fi +fi set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP +cd $TMP rm -rf $TMP/$PRGNAM-$VERSION -tar -xvf $CWD/*-$PRGNAM-$VERSION.tar.gz +tar -xvf $CWD/*-$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -69,7 +67,7 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; -- cgit v1.2.3