summaryrefslogtreecommitdiffstats
path: root/network/amsn/amsn.SlackBuild
diff options
context:
space:
mode:
author Niklas Nille Åkerström <nille.kungen [at] gmail dot com>2010-05-13 00:35:34 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-13 00:35:34 +0200
commit8747af343d7e368aaac0de42b1eda4277e05bdb9 (patch)
tree036e3a2051a1f564d7bd6144af08eed95fc56857 /network/amsn/amsn.SlackBuild
parent474e5fbe21c45726ec0677901e3b9b0153eead3f (diff)
downloadslackbuilds-8747af343d7e368aaac0de42b1eda4277e05bdb9.tar.gz
slackbuilds-8747af343d7e368aaac0de42b1eda4277e05bdb9.tar.xz
network/amsn: Updated for version 0.97.2
Diffstat (limited to 'network/amsn/amsn.SlackBuild')
-rw-r--r--network/amsn/amsn.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/network/amsn/amsn.SlackBuild b/network/amsn/amsn.SlackBuild
index d57cfdd631..32b685d0a0 100644
--- a/network/amsn/amsn.SlackBuild
+++ b/network/amsn/amsn.SlackBuild
@@ -19,10 +19,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
rm -rf $PKG
@@ -37,13 +40,13 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
make || exit 1
-make install DESTDIR=$PKG \
- || exit 1
+make install DESTDIR=$PKG || exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -58,9 +61,11 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- 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
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
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}