aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortitopoquito <titopoquito@cooltoad.com>2010-05-11 19:46:11 +0200
committerEric Hameleers <alien@slackbuilds.org>2010-05-11 19:46:11 +0200
commitac82a8f76b177dee48a25dc1c9bf1db48549cc2a (patch)
treea87bf4663560a1f03c2a811a2604444891425220
parentebb6597c1ad89a1603f4dca8f64d58f40a636da1 (diff)
office/antiword: Updated for version 0.37
-rw-r--r--office/antiword/antiword.SlackBuild15
1 files changed, 5 insertions, 10 deletions
diff --git a/office/antiword/antiword.SlackBuild b/office/antiword/antiword.SlackBuild
index f947012c1fcde..d7de2d8d21c89 100644
--- a/office/antiword/antiword.SlackBuild
+++ b/office/antiword/antiword.SlackBuild
@@ -26,13 +26,13 @@ set -e
PRGNAM=antiword
VERSION=0.37
-ARCH=${ARCH:-i486} # this should not change
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo} # the "_SBo" is required
+TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -50,16 +50,14 @@ chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# let antiword be installed to /usr instead of /usr/local
-# since there is no configre utility here, we'll patch the Makefile
+# since there is no configure utility here, we'll patch the Makefile
patch -p0 < $CWD/patch.Makefile
-# Compile the application and install it into the $PKG directory
# call "make all" instead the usual "make" and "make global_install"
# instead of "make install" to make the binary accessable by all users
make all
make global_install DESTDIR=$PKG
-# Strip binaries and libraries
( 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
@@ -69,15 +67,12 @@ make global_install DESTDIR=$PKG
mkdir -p $PKG/usr/man/man1
gzip -9cf Docs/antiword.1 > $PKG/usr/man/man1/antiword.1.gz
-# Copy program documentation into the package
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Copy the slack-desc into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# Make the package; be sure to leave it in $OUTPUT
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz