diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2023-07-12 09:49:30 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-15 17:30:17 +0700 |
commit | f13afae57e129b1c1eecd8eb843dde7d4631edf8 (patch) | |
tree | 58de05d49b894b978f51dd51200f011c6a7dc6be /office/htmldoc/htmldoc.SlackBuild | |
parent | 36c22ffb656df3a8b8bedc466ddcc6f26d696ef7 (diff) |
office/htmldoc: Updated for version 1.9.16.
The install routine is so broken that most of the stuff
is manually copied in place
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/htmldoc/htmldoc.SlackBuild')
-rw-r--r-- | office/htmldoc/htmldoc.SlackBuild | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/office/htmldoc/htmldoc.SlackBuild b/office/htmldoc/htmldoc.SlackBuild index 84d3041139..b66ecd1b33 100644 --- a/office/htmldoc/htmldoc.SlackBuild +++ b/office/htmldoc/htmldoc.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for htmldoc # Copyright 2009-2014 LukenShiro, Italy +# Copyright 2023 Matteo Bernardini, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -49,8 +50,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=htmldoc -VERSION=${VERSION:-1.9.8} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.9.16} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -106,12 +107,12 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # workaround to avoid /usr/share/doc/htmldoc's use for help function -sed -r -i 's|^#define DOCUMENTATION "$prefix/share/doc/htmldoc"|\ - #define DOCUMENTATION "$prefix/doc/htmldoc-$VERSION"|g' ./configure +sed -i -e "s|\$datadir/doc/htmldoc|/usr/doc/htmldoc-$VERSION/html|" \ + -e "s|^docdir=.*|docdir=/usr/doc/$PRGNAM-$VERSION|" ./configure || exit 1 # to avoid an invalid implicit declaration of function (for 'CUPS_SRAND' and 'CUPS_RAND') -sed -r -i 's|CUPS_SRAND|srand|g' htmldoc/http.c -sed -r -i 's|CUPS_RAND|rand|g' htmldoc/http.c +sed -r -i 's|CUPS_SRAND|srand|g' htmldoc/http.c || exit 1 +sed -r -i 's|CUPS_RAND|rand|g' htmldoc/http.c || exit 1 # --mandir seems to be ignored; --docdir doesn't exist # internal jpeg/png/zlib libs disabled (using system ones) @@ -123,16 +124,9 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-ssl \ --with-gui \ - --disable-localjpeg \ - --disable-localzlib \ - --disable-localpng \ - --disable-gnutls \ + --enable-gnutls \ --build=$ARCH-slackware-linux -# workaround to avoid /usr/share/doc/htmldoc's use for doc installation -sed -r -i 's|\$(datadir)/doc/htmldoc|\$(prefix)/doc/htmldoc-$VERSION|g' \ - doc/Makefile - # 'make all' also does install (DESTDIR not supported) # 20230630 bkw: DESTDIR is spelled BUILDROOT, here. make all BUILDROOT=$PKG @@ -151,6 +145,8 @@ cp -a desktop/htmldoc-256.png $PKG/usr/share/icons/hicolor/256x256/apps/$PRGNAM. mkdir -p $PKG/usr/share/htmldoc/ cp -a fonts $PKG/usr/share/htmldoc/ cp -a data $PKG/usr/share/htmldoc/ +mkdir -p $PKG/usr/man/man1 +gzip -c9 doc/htmldoc.man > $PKG/usr/man/man1/htmldoc.1.gz sed -i '/^Categories/s,Application;,,' $PKG/usr/share/applications/*.desktop @@ -160,9 +156,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done # Just in case .. -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/ -cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION - +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html +cp -a $DOCFILES doc/$PRGNAM.{epub,html,pdf,ps} $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/*.{html,png} $PKG/usr/doc/$PRGNAM-$VERSION/html cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |