mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
office/antiword: Updated for version 0.37
This commit is contained in:
parent
ebb6597c1a
commit
ac82a8f76b
1 changed files with 5 additions and 10 deletions
|
@ -26,13 +26,13 @@ set -e
|
||||||
|
|
||||||
PRGNAM=antiword
|
PRGNAM=antiword
|
||||||
VERSION=0.37
|
VERSION=0.37
|
||||||
ARCH=${ARCH:-i486} # this should not change
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo} # the "_SBo" is required
|
TAG=${TAG:-_SBo}
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
@ -50,16 +50,14 @@ chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
# let antiword be installed to /usr instead of /usr/local
|
# 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
|
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"
|
# call "make all" instead the usual "make" and "make global_install"
|
||||||
# instead of "make install" to make the binary accessable by all users
|
# instead of "make install" to make the binary accessable by all users
|
||||||
make all
|
make all
|
||||||
make global_install DESTDIR=$PKG
|
make global_install DESTDIR=$PKG
|
||||||
|
|
||||||
# Strip binaries and libraries
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . | xargs file | grep "executable" | 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
|
||||||
find . | xargs file | grep "shared object" | 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
|
mkdir -p $PKG/usr/man/man1
|
||||||
gzip -9cf Docs/antiword.1 > $PKG/usr/man/man1/antiword.1.gz
|
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
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a Docs/* $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a Docs/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
# Copy the slack-desc into ./install
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
# Make the package; be sure to leave it in $OUTPUT
|
|
||||||
cd $PKG
|
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.tgz
|
||||||
|
|
Loading…
Reference in a new issue