wok-next diff man2html/receipt @ rev 18840

Add man2html, html2text
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 22 17:24:34 2016 +0200 (2016-01-22)
parents
children a7b109fabcee
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/man2html/receipt	Fri Jan 22 17:24:34 2016 +0200
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="man2html"
     1.7 +VERSION="1.6g-7-slitaz"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Man pages to HTML convertor written in C"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="BSD"
    1.12 +WEB_SITE="https://github.com/man-pages-zh/man2html"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WGET_URL="https://github.com/man-pages-zh/man2html/archive/$VERSION.tar.gz"
    1.15 +
    1.16 +DEPENDS="glib"
    1.17 +BUILD_DEPENDS="glib-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	patch -p1 -i $stuff/man2html-slitaz.diff
    1.23 +	make && make install
    1.24 +
    1.25 +	# translations
    1.26 +	make pot
    1.27 +	cp $stuff/ru.po $src/po
    1.28 +	make LINGUAS=ru msgfmt
    1.29 +	mkdir -p $install/usr/share/locale
    1.30 +	cp -a $src/po/mo/* $install/usr/share/locale
    1.31 +
    1.32 +	# compress man page
    1.33 +	gzip $install/usr/share/man/man1/man2html.1
    1.34 +
    1.35 +	# install scripts
    1.36 +	cp -a $src/hman.sh $install/usr/bin/hman
    1.37 +	mkdir -p $install/var/www
    1.38 +	cp -a $src/man.sh $install/var/www/man.cgi
    1.39 +	chown www:www $install/var/www/man.cgi
    1.40 +	chmod a+x $install/var/www/man.cgi
    1.41 +}
    1.42 +
    1.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 +genpkg_rules()
    1.45 +{
    1.46 +	cp -a $install/* $fs
    1.47 +}