aboutsummaryrefslogtreecommitdiff
path: root/office/pdf2djvu/pdf2djvu.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-18 03:11:15 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-19 12:09:28 +0700
commit23ff635ce7381df4b27759e271d54a02864d092c (patch)
treeb5200c71ca826ea3c74ea1e52060e1759d97cce6 /office/pdf2djvu/pdf2djvu.SlackBuild
parente70f413f4730347e547b2afc2f52c8f120c2bdb5 (diff)
office/pdf2djvu: Updated for version 0.9.18.2.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/pdf2djvu/pdf2djvu.SlackBuild')
-rw-r--r--office/pdf2djvu/pdf2djvu.SlackBuild21
1 files changed, 10 insertions, 11 deletions
diff --git a/office/pdf2djvu/pdf2djvu.SlackBuild b/office/pdf2djvu/pdf2djvu.SlackBuild
index a0b62a2cacf38..a65dc49939036 100644
--- a/office/pdf2djvu/pdf2djvu.SlackBuild
+++ b/office/pdf2djvu/pdf2djvu.SlackBuild
@@ -23,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220218 bkw: Modified by SlackBuilds.org: updated to v0.9.18.2 as
+# the previous version wouldn't build on Slackware 15.0.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pdf2djvu
-VERSION=${VERSION:-0.9.17.1}
+VERSION=${VERSION:-0.9.18.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +42,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
@@ -76,12 +76,15 @@ cd $PRGNAM-$VERSION
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 \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
sed -i 's/poppler-splash/poppler/g' configure
+# 20220218 bkw: no install-strip target, but this worx.
+SLKCFLAGS+=" -Wl,-s"
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -99,11 +102,7 @@ make test
make
make install DESTDIR=$PKG
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-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/{man1,??/man1}/*.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/README doc/COPYING doc/changelog $PKG/usr/doc/$PRGNAM-$VERSION