wok-next view man2html/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
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 }