wok-current annotate man2html/receipt @ rev 21370
gnuradio, mtp-tools, potamus: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 21 20:00:24 2019 +0200 (2019-04-21) |
parents | 27b321c14ae7 |
children | 5ea0ce1cecc0 |
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@18840 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@18840 | 11 WGET_URL="https://github.com/man-pages-zh/man2html/archive/$VERSION.tar.gz" |
al@18840 | 12 |
al@18840 | 13 DEPENDS="glib" |
al@18840 | 14 BUILD_DEPENDS="glib-dev" |
al@18840 | 15 |
al@18840 | 16 # Rules to configure and make the package. |
al@18840 | 17 compile_rules() |
al@18840 | 18 { |
al@18840 | 19 patch -p1 -i $stuff/man2html-slitaz.diff |
al@18840 | 20 make && make install |
al@18840 | 21 |
al@18840 | 22 # translations |
al@18840 | 23 make pot |
al@18840 | 24 cp $stuff/ru.po $src/po |
al@18840 | 25 make LINGUAS=ru msgfmt |
al@18840 | 26 mkdir -p $install/usr/share/locale |
al@18840 | 27 cp -a $src/po/mo/* $install/usr/share/locale |
al@18840 | 28 |
al@18840 | 29 # compress man page |
al@18840 | 30 gzip $install/usr/share/man/man1/man2html.1 |
al@18840 | 31 |
al@18840 | 32 # install scripts |
al@18840 | 33 cp -a $src/hman.sh $install/usr/bin/hman |
al@18840 | 34 mkdir -p $install/var/www |
al@18840 | 35 cp -a $src/man.sh $install/var/www/man.cgi |
al@18840 | 36 chown www:www $install/var/www/man.cgi |
al@18840 | 37 chmod a+x $install/var/www/man.cgi |
al@18840 | 38 } |
al@18840 | 39 |
al@18840 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18840 | 41 genpkg_rules() |
al@18840 | 42 { |
al@18840 | 43 cp -a $install/* $fs |
al@18840 | 44 } |