wok-next view man2html/receipt @ rev 21449
updated slock (1.1 -> 1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 07 07:51:56 2020 +0100 (2020-05-07) |
parents | d6378d455338 |
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"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/man-pages-zh/man2html/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="glib-dev gettext"
16 compile_rules() {
17 make &&
18 make install || return 1
20 # translations
21 make pot
22 cp $stuff/ru.po $src/po
23 make LINGUAS=ru msgfmt
24 mkdir -p $install/usr/share/locale
25 cp -a $src/po/mo/* $install/usr/share/locale
27 # compress man page
28 gzip $install/usr/share/man/man1/man2html.1
30 # install scripts
31 cp -a $src/hman.sh $install/usr/bin/hman
32 mkdir -p $install/var/www
33 cp -a $src/man.sh $install/var/www/man.cgi
34 chown www:www $install/var/www/man.cgi
35 chmod a+x $install/var/www/man.cgi
36 }
38 genpkg_rules() {
39 cp -a $install/* $fs
40 DEPENDS="glib"
41 }