wok-next annotate man2html/receipt @ rev 21457
updated sshfs-fuse (3.3.1 -> 3.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 07 14:36:33 2020 +0100 (2020-05-07) |
parents | d6378d455338 |
children |
rev | line source |
---|---|
al@18840 | 1 # SliTaz package receipt. |
al@18840 | 2 |
al@18840 | 3 PACKAGE="man2html" |
al@18841 | 4 VERSION="1.6g-7" |
al@18840 | 5 CATEGORY="utilities" |
al@18840 | 6 SHORT_DESC="Man pages to HTML convertor written in C" |
al@18840 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@18840 | 8 LICENSE="BSD" |
al@18840 | 9 WEB_SITE="https://github.com/man-pages-zh/man2html" |
al@21020 | 10 |
al@18840 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@18840 | 12 WGET_URL="https://github.com/man-pages-zh/man2html/archive/$VERSION.tar.gz" |
al@18840 | 13 |
al@21020 | 14 BUILD_DEPENDS="glib-dev gettext" |
al@18840 | 15 |
al@21020 | 16 compile_rules() { |
al@21020 | 17 make && |
al@21020 | 18 make install || return 1 |
al@18840 | 19 |
al@18840 | 20 # translations |
al@18840 | 21 make pot |
al@18840 | 22 cp $stuff/ru.po $src/po |
al@18840 | 23 make LINGUAS=ru msgfmt |
al@18840 | 24 mkdir -p $install/usr/share/locale |
al@18840 | 25 cp -a $src/po/mo/* $install/usr/share/locale |
al@18840 | 26 |
al@18840 | 27 # compress man page |
al@18840 | 28 gzip $install/usr/share/man/man1/man2html.1 |
al@18840 | 29 |
al@18840 | 30 # install scripts |
al@18840 | 31 cp -a $src/hman.sh $install/usr/bin/hman |
al@18840 | 32 mkdir -p $install/var/www |
al@18840 | 33 cp -a $src/man.sh $install/var/www/man.cgi |
al@18840 | 34 chown www:www $install/var/www/man.cgi |
al@18840 | 35 chmod a+x $install/var/www/man.cgi |
al@18840 | 36 } |
al@18840 | 37 |
al@21020 | 38 genpkg_rules() { |
al@18840 | 39 cp -a $install/* $fs |
al@21020 | 40 DEPENDS="glib" |
al@18840 | 41 } |