summaryrefslogtreecommitdiff
path: root/network/opendchub/opendchub.SlackBuild
diff options
context:
space:
mode:
authorMichael Kapelko <kornerr @ Google mail>2010-05-13 00:37:41 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:37:41 +0200
commit97565c2af70a5acecf9f7d4248897f2a0ec1dd0a (patch)
tree724a5c4bb271bff47cea2bf5b997e53b2937a9a7 /network/opendchub/opendchub.SlackBuild
parent8e76bfd2c826db393f7523867938868cc004c93c (diff)
downloadslackbuilds-97565c2af70a5acecf9f7d4248897f2a0ec1dd0a.tar.gz
network/opendchub: Updated for version 0.7.15
Diffstat (limited to 'network/opendchub/opendchub.SlackBuild')
-rw-r--r--network/opendchub/opendchub.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/network/opendchub/opendchub.SlackBuild b/network/opendchub/opendchub.SlackBuild
index f63ec1c877..ee3f018b8c 100644
--- a/network/opendchub/opendchub.SlackBuild
+++ b/network/opendchub/opendchub.SlackBuild
@@ -32,10 +32,13 @@ 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
@@ -57,6 +60,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -69,8 +73,10 @@ 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 || true
- find . | xargs file | grep "shared object" | 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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -82,5 +88,5 @@ 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}