summaryrefslogtreecommitdiffstats
path: root/office/abiword/abiword.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/abiword/abiword.SlackBuild')
-rw-r--r--office/abiword/abiword.SlackBuild27
1 files changed, 15 insertions, 12 deletions
diff --git a/office/abiword/abiword.SlackBuild b/office/abiword/abiword.SlackBuild
index 3168adb8a9..11707f4c3a 100644
--- a/office/abiword/abiword.SlackBuild
+++ b/office/abiword/abiword.SlackBuild
@@ -29,12 +29,17 @@
# 20200622 bkw: updated for v3.0.4, which fixes the flickering issue.
# abiword-docs hasn't seen a new release, we're still on 3.0.2 there.
+# 20220218 bkw: updated for v3.0.5, which keeps the build from breaking
+# if asio is installed. added a note to README about asio. also, remove
+# the .la file from the package. still no new abiword-docs release.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=abiword
-VERSION=${VERSION:-3.0.4}
-DOCSVER=3.0.2 # version of abiword-docs
-DOCTAR=3.0.1 # sigh, the tarball contains abiword-docs-3.0.1 still
+VERSION=${VERSION:-3.0.5}
+DOCSVER=3.0.2 # version of abiword-docs
+DOCTAR=3.0.1 # sigh, the tarball contains abiword-docs-3.0.1 still
+ # (DOCTAR WHO?)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -47,9 +52,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -86,9 +88,9 @@ tar xvf $CWD/abiword-docs-$DOCSVER.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
patch -p1 < $CWD/enchant-2.1.patch
@@ -136,15 +138,16 @@ cd abiword-docs-$DOCTAR
make install DESTDIR=$PKG
cd ..
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9 $PKG/usr/man/man*/*
-# 20200622 bkw: Skip useless docs. NEWS and ChangeLog are 0-byte placeholders,
+# 20200622 bkw: Skip useless docs. ChangeLog is a 0-byte placeholder,
# INSTALL is generic GNU confgure instructions.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a *.txt *.TXT AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.txt *.TXT AUTHORS COPYING README NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh