wok view man2html/receipt @ rev 25396

updated vidalia (0.2.21 -> 0.3.1)
author Hans-G?nter Theisgen
date Tue Aug 02 10:16:02 2022 +0100 (2022-08-02)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="man2html"
4 VERSION="1.6g-7"
5 CATEGORY="utilities"
6 SHORT_DESC="Man pages to HTML convertor written in C"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/man-pages-zh/man2html"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/man-pages-zh/man2html/archive/$VERSION.tar.gz"
13 DEPENDS="glib"
14 BUILD_DEPENDS="glib-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 patch -p1 -i $stuff/man2html-slitaz.diff
26 make && make install
28 # translations
29 make pot
30 cp $stuff/ru.po $src/po
31 make LINGUAS=ru msgfmt
32 mkdir -p $install/usr/share/locale
33 cp -a $src/po/mo/* $install/usr/share/locale
35 # compress man page
36 gzip $install/usr/share/man/man1/man2html.1
38 # install scripts
39 cp -a $src/hman.sh $install/usr/bin/hman
40 mkdir -p $install/var/www
41 cp -a $src/man.sh $install/var/www/man.cgi
42 chown www:www $install/var/www/man.cgi
43 chmod a+x $install/var/www/man.cgi
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
50 }