aboutsummaryrefslogtreecommitdiff
path: root/system/xchm/xchm.SlackBuild
diff options
context:
space:
mode:
authorMichael Gehring <mg@ebfe.org>2010-05-13 00:42:30 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:42:30 +0200
commit645fe724c2edccde96f8746e185069f2bdacae16 (patch)
tree904558736488f0ef4f68881774a981937da9bc08 /system/xchm/xchm.SlackBuild
parent8785caf4ea0abd9431c6a740f8f2cdb5912f21db (diff)
system/xchm: Updated for version 1.14
Diffstat (limited to 'system/xchm/xchm.SlackBuild')
-rw-r--r--system/xchm/xchm.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/xchm/xchm.SlackBuild b/system/xchm/xchm.SlackBuild
index 69dccbda6caa2..e1bea647325a5 100644
--- a/system/xchm/xchm.SlackBuild
+++ b/system/xchm/xchm.SlackBuild
@@ -16,10 +16,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686 -fno-strict-aliasing"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -fno-strict-aliasing"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC -fno-strict-aliasing"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -41,21 +44,22 @@ CFLAGS=$SLKCFLAGS \
CXXFLAGS=$SLKCFLAGS \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-
strip --strip-unneeded $PKG/usr/bin/$PRGNAM 2> /dev/null
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README README.xmlrpc \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README README.xmlrpc \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}