wok view htmldoc/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (11 months ago) |
parents | 20ad21d5532c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="htmldoc"
4 VERSION="1.9.11"
5 CATEGORY="utilities"
6 SHORT_DESC="Convert HTML and markdown to EPUB, HTML, PS or PDF document."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.msweet.org/htmldoc"
11 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
12 WGET_URL="https://github.com/michaelrsweet/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 SUGGESTED="gnutls" # for https://uri
15 DEPENDS="fltk jpeg libpng"
16 BUILD_DEPENDS="fltk-dev gnutls-dev jpeg-dev libpng-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \
29 -e 's|\(quantize.*\)0|\1boolean(0)|' \
30 htmldoc/image.cxx
32 # make sure not to use the libraries htmldoc ships with
33 mkdir donotuse
34 mv jpeg donotuse/
35 mv png donotuse/
36 mv zlib donotuse/
38 ./configure \
39 --prefix=/usr \
40 --enable-gnutls \
41 $CONFIGURE_ARGS &&
42 make &&
43 make install prefix=$DESTDIR/usr
45 # fix freedesktop stuff
46 install -Dm 644 desktop/htmldoc-128.png \
47 $DESTDIR/usr/share/pixmaps/htmldoc.png
48 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
49 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
50 install -Dm 644 desktop/htmldoc.desktop \
51 $DESTDIR/usr/share/applications/htmldoc.desktop
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/share/htmldoc $fs/usr/share
61 }