summaryrefslogtreecommitdiff
path: root/libraries/libxklavier/libxklavier.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-12 17:41:52 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:41:52 +0200
commit7d6bc4621b5eaafa33da9d3d66fed90955d816cb (patch)
treea4fb70286805356e0135dbc0ef9afd3235a276fb /libraries/libxklavier/libxklavier.SlackBuild
parent8483e85757803c94bcab77658a8baae0b424243c (diff)
downloadslackbuilds-7d6bc4621b5eaafa33da9d3d66fed90955d816cb.tar.gz
libraries/libxklavier: Updated for version 3.9
Diffstat (limited to 'libraries/libxklavier/libxklavier.SlackBuild')
-rw-r--r--libraries/libxklavier/libxklavier.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/libraries/libxklavier/libxklavier.SlackBuild b/libraries/libxklavier/libxklavier.SlackBuild
index bcc37f9b8c..cda2732f85 100644
--- a/libraries/libxklavier/libxklavier.SlackBuild
+++ b/libraries/libxklavier/libxklavier.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libxklavier
-# Copyright 2007-2008 Heinz Wiesinger <hmwiesinger@gmx.at>
+# Copyright 2007-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libxklavier
-VERSION=3.5
+VERSION=3.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ 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
@@ -45,7 +47,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -56,7 +58,8 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --disable-static
+ --disable-static \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -65,6 +68,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING.LIB CREDITS INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
( cd $PKG/usr/doc/$PRGNAM-$VERSION
ln -s /usr/share/gtk-doc/html/libxklavier html
)