aboutsummaryrefslogtreecommitdiff
path: root/network/centerim/centerim.SlackBuild
diff options
context:
space:
mode:
authorChristopher Forrest <cforrest@gmx.net>2010-05-13 00:35:54 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:35:54 +0200
commit869be710c5d74bb95304a04b80ad31a83b6f910f (patch)
treefb71a883fcb4fd35d6da4d8e2bb76f94b2db3f04 /network/centerim/centerim.SlackBuild
parente826751603917719d412843e0c92a8a19f22eaed (diff)
network/centerim: Updated for version 4.22.9
Diffstat (limited to 'network/centerim/centerim.SlackBuild')
-rw-r--r--network/centerim/centerim.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/network/centerim/centerim.SlackBuild b/network/centerim/centerim.SlackBuild
index 95206b412382..10eb5d6fc10f 100644
--- a/network/centerim/centerim.SlackBuild
+++ b/network/centerim/centerim.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=centerim
-VERSION=4.22.2
+VERSION=4.22.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -53,6 +58,7 @@ chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -62,8 +68,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
)
gzip -9 $PKG/usr/man/man?/*
@@ -77,4 +85,4 @@ 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}