wok view htmldoc/receipt @ rev 23265

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