mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
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>
This commit is contained in:
parent
36c22ffb65
commit
f13afae57e
2 changed files with 18 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="htmldoc"
|
||||
VERSION="1.9.8"
|
||||
VERSION="1.9.16"
|
||||
HOMEPAGE="https://www.msweet.org/htmldoc/index.html"
|
||||
DOWNLOAD="https://github.com/michaelrsweet/htmldoc/releases/download/v1.9.8/htmldoc-1.9.8-source.tar.gz"
|
||||
MD5SUM="71c7d0dd3b4e01cfc9b9e932b8b58f01"
|
||||
DOWNLOAD="https://github.com/michaelrsweet/htmldoc/releases/download/v1.9.16/htmldoc-1.9.16-source.tar.gz"
|
||||
MD5SUM="9d82dd05321ca44594d9d1841868b2d5"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="fltk"
|
||||
MAINTAINER="LukenShiro"
|
||||
EMAIL="lukenshiro@ngi.it"
|
||||
MAINTAINER="Matteo Bernardini"
|
||||
EMAIL="ponce@slackbuilds.org"
|
||||
|
|
Loading…
Reference in a new issue