wok annotate htmldoc/receipt @ rev 23874

squidclamav: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 19:42:45 2020 +0000 (2020-06-25)
parents 5b6c86ca3faa
children 5ea0ce1cecc0
rev   line source
gokhlayeh@8883 1 # SliTaz package receipt.
gokhlayeh@8883 2
gokhlayeh@8883 3 PACKAGE="htmldoc"
Hans-G?nter@22933 4 VERSION="1.9.8"
gokhlayeh@8883 5 CATEGORY="utilities"
gokhlayeh@8883 6 SHORT_DESC="Convert HTML pages into a PDF document."
gokhlayeh@8883 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@15077 8 LICENSE="GPL2"
pascal@22007 9 WEB_SITE="https://www.htmldoc.org"
gokhlayeh@8883 10
Hans-G?nter@22933 11 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
Hans-G?nter@22933 12 WGET_URL="https://github.com/michaelrsweet/$PACKAGE/releases/download/v$VERSION/$TARBALL"
Hans-G?nter@22933 13
Hans-G?nter@22933 14 DEPENDS="fltk jpeg libpng"
Hans-G?nter@22933 15 BUILD_DEPENDS="fltk-dev jpeg-dev libpng-dev"
pascal@15077 16
gokhlayeh@8883 17 # Rules to configure and make the package.
gokhlayeh@8883 18 compile_rules()
gokhlayeh@8883 19 {
pascal@21121 20 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \
Hans-G?nter@22933 21 -e 's|\(quantize.*\)0|\1boolean(0)|' \
Hans-G?nter@22933 22 htmldoc/image.cxx
gokhlayeh@8883 23
Hans-G?nter@22933 24 # make sure not to use the libraries htmldoc ships with
Hans-G?nter@22933 25 mkdir foo
Hans-G?nter@22933 26 mv jpeg foo/
Hans-G?nter@22933 27 mv png foo/
Hans-G?nter@22933 28 mv zlib foo/
gokhlayeh@8883 29
Hans-G?nter@22933 30 ./configure \
Hans-G?nter@22933 31 --prefix=/usr \
Hans-G?nter@22933 32 $CONFIGURE_ARGS &&
Hans-G?nter@22933 33 make &&
Hans-G?nter@22933 34 make prefix=$DESTDIR/usr install
gokhlayeh@8883 35
gokhlayeh@8883 36 # fix freedesktop stuff
gokhlayeh@8883 37 install -Dm 644 desktop/htmldoc-128.png \
gokhlayeh@8883 38 $DESTDIR/usr/share/pixmaps/htmldoc.png
gokhlayeh@8883 39 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
gokhlayeh@8883 40 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
gokhlayeh@8883 41 install -Dm 644 desktop/htmldoc.desktop \
gokhlayeh@8883 42 $DESTDIR/usr/share/applications/htmldoc.desktop
gokhlayeh@8883 43 }
gokhlayeh@8883 44
gokhlayeh@8883 45 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8883 46 genpkg_rules()
gokhlayeh@8883 47 {
gokhlayeh@8883 48 mkdir -p $fs/usr/share
Hans-G?nter@22933 49
Hans-G?nter@22933 50 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22933 51 cp -a $install/usr/share/htmldoc $fs/usr/share
Hans-G?nter@22933 52 }