wok annotate htmldoc/receipt @ rev 25092
updated pari and pari-dev (2.11.3 -> 2.13.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 10:01:45 2022 +0100 (2022-06-18) |
parents | 4636144009a9 |
children | 20ad21d5532c |
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 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
gokhlayeh@8883 | 23 # Rules to configure and make the package. |
gokhlayeh@8883 | 24 compile_rules() |
gokhlayeh@8883 | 25 { |
pascal@21121 | 26 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \ |
Hans-G?nter@22933 | 27 -e 's|\(quantize.*\)0|\1boolean(0)|' \ |
Hans-G?nter@22933 | 28 htmldoc/image.cxx |
gokhlayeh@8883 | 29 |
Hans-G?nter@22933 | 30 # make sure not to use the libraries htmldoc ships with |
Hans-G?nter@22933 | 31 mkdir foo |
Hans-G?nter@22933 | 32 mv jpeg foo/ |
Hans-G?nter@22933 | 33 mv png foo/ |
Hans-G?nter@22933 | 34 mv zlib foo/ |
gokhlayeh@8883 | 35 |
Hans-G?nter@22933 | 36 ./configure \ |
Hans-G?nter@22933 | 37 --prefix=/usr \ |
Hans-G?nter@22933 | 38 $CONFIGURE_ARGS && |
Hans-G?nter@22933 | 39 make && |
Hans-G?nter@22933 | 40 make prefix=$DESTDIR/usr install |
gokhlayeh@8883 | 41 |
gokhlayeh@8883 | 42 # fix freedesktop stuff |
gokhlayeh@8883 | 43 install -Dm 644 desktop/htmldoc-128.png \ |
gokhlayeh@8883 | 44 $DESTDIR/usr/share/pixmaps/htmldoc.png |
gokhlayeh@8883 | 45 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop |
gokhlayeh@8883 | 46 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop |
gokhlayeh@8883 | 47 install -Dm 644 desktop/htmldoc.desktop \ |
gokhlayeh@8883 | 48 $DESTDIR/usr/share/applications/htmldoc.desktop |
gokhlayeh@8883 | 49 } |
gokhlayeh@8883 | 50 |
gokhlayeh@8883 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8883 | 52 genpkg_rules() |
gokhlayeh@8883 | 53 { |
gokhlayeh@8883 | 54 mkdir -p $fs/usr/share |
Hans-G?nter@22933 | 55 |
Hans-G?nter@22933 | 56 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22933 | 57 cp -a $install/usr/share/htmldoc $fs/usr/share |
Hans-G?nter@22933 | 58 } |