summaryrefslogtreecommitdiff
path: root/network/bip/bip.SlackBuild
diff options
context:
space:
mode:
authorChess Griffin <chess@chessgriffin.com>2010-05-11 22:25:04 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:25:04 +0200
commit481d199ab9c57da2c7557a7198938f4996e6caf4 (patch)
treeffa2e7d326d9ae80a2b4d6fd9dbfa0403e476996 /network/bip/bip.SlackBuild
parentf66f8dba1253af0288b48b3776fa37e9e4d76282 (diff)
downloadslackbuilds-481d199ab9c57da2c7557a7198938f4996e6caf4.tar.gz
network/bip: Updated for version 0.7.5
Diffstat (limited to 'network/bip/bip.SlackBuild')
-rw-r--r--network/bip/bip.SlackBuild31
1 files changed, 19 insertions, 12 deletions
diff --git a/network/bip/bip.SlackBuild b/network/bip/bip.SlackBuild
index 9a41bd5c4d..02904e9773 100644
--- a/network/bip/bip.SlackBuild
+++ b/network/bip/bip.SlackBuild
@@ -4,27 +4,29 @@
# Written by Chess Griffin <chess@chessgriffin.com>
-# Exit on most errors
-set -e
-
-PRGNAM=bip # replace with name of program
-VERSION=0.7.0 # replace with version of program
-ARCH=${ARCH:-i486} # this should not change
+PRGNAM=bip
+VERSION=0.7.5
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo} # the "_SBo" is required
+TAG=${TAG:-_SBo}
+
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS BUGS COPYING ChangeLog README TODO scripts/bip-release scripts/bipgenconfig"
+DOCS="AUTHORS BUGS COPYING ChangeLog NEWS README TODO scripts/bip-release scripts/bipgenconfig"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -44,13 +46,15 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
@@ -65,6 +69,9 @@ cp -a *.1 $PKG/usr/man/man1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/bip/examples $PKG/usr/doc/$PRGNAM-$VERSION/examples
+rm -rf $PKG/usr/share
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install