wok view man2html/receipt @ rev 19188

Up tazpanel (593)
author Paul Issott <paul@slitaz.org>
date Sat Jun 04 18:44:40 2016 +0100 (2016-06-04)
parents 27b321c14ae7
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 patch -p1 -i $stuff/man2html-slitaz.diff
20 make && make install
22 # translations
23 make pot
24 cp $stuff/ru.po $src/po
25 make LINGUAS=ru msgfmt
26 mkdir -p $install/usr/share/locale
27 cp -a $src/po/mo/* $install/usr/share/locale
29 # compress man page
30 gzip $install/usr/share/man/man1/man2html.1
32 # install scripts
33 cp -a $src/hman.sh $install/usr/bin/hman
34 mkdir -p $install/var/www
35 cp -a $src/man.sh $install/var/www/man.cgi
36 chown www:www $install/var/www/man.cgi
37 chmod a+x $install/var/www/man.cgi
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 }