From ac82a8f76b177dee48a25dc1c9bf1db48549cc2a Mon Sep 17 00:00:00 2001 From: titopoquito Date: Tue, 11 May 2010 19:46:11 +0200 Subject: office/antiword: Updated for version 0.37 --- office/antiword/antiword.SlackBuild | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'office/antiword/antiword.SlackBuild') diff --git a/office/antiword/antiword.SlackBuild b/office/antiword/antiword.SlackBuild index f947012c1f..d7de2d8d21 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 -- cgit v1.2.3