summaryrefslogtreecommitdiff
path: root/network/knemo/knemo.SlackBuild
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2010-06-16 14:10:09 -0500
committerErik Hanson <erik@slackbuilds.org>2010-06-16 17:08:29 -0500
commitd5ee0b74f5617f236154d38ca4e636ef836fe474 (patch)
treeaa5bbd5e1c62c815a1743fc2f3b53df5c3034ea8 /network/knemo/knemo.SlackBuild
parent6107d94b253f024101967408d53c5c67ab56423d (diff)
downloadslackbuilds-d5ee0b74f5617f236154d38ca4e636ef836fe474.tar.gz
network/knemo: Updated for version 0.6.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/knemo/knemo.SlackBuild')
-rw-r--r--network/knemo/knemo.SlackBuild26
1 files changed, 12 insertions, 14 deletions
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 <bmg.andre@gmail.com>
-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 {} \;