wok annotate man2html/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (2022-06-13)
parents 5ea0ce1cecc0
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@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
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24299 18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
al@18840 22 # Rules to configure and make the package.
al@18840 23 compile_rules()
al@18840 24 {
al@18840 25 patch -p1 -i $stuff/man2html-slitaz.diff
al@18840 26 make && make install
al@18840 27
al@18840 28 # translations
al@18840 29 make pot
al@18840 30 cp $stuff/ru.po $src/po
al@18840 31 make LINGUAS=ru msgfmt
al@18840 32 mkdir -p $install/usr/share/locale
al@18840 33 cp -a $src/po/mo/* $install/usr/share/locale
al@18840 34
al@18840 35 # compress man page
al@18840 36 gzip $install/usr/share/man/man1/man2html.1
al@18840 37
al@18840 38 # install scripts
al@18840 39 cp -a $src/hman.sh $install/usr/bin/hman
al@18840 40 mkdir -p $install/var/www
al@18840 41 cp -a $src/man.sh $install/var/www/man.cgi
al@18840 42 chown www:www $install/var/www/man.cgi
al@18840 43 chmod a+x $install/var/www/man.cgi
al@18840 44 }
al@18840 45
al@18840 46 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18840 47 genpkg_rules()
al@18840 48 {
al@18840 49 cp -a $install/* $fs
al@18840 50 }