wok view xmlto/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 3105f866bc3e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xmlto"
4 VERSION="0.0.28"
5 CATEGORY="utilities"
6 LICENSE="GPL"
7 SHORT_DESC="Tool for converting XML files to various formats."
8 MAINTAINER="yuripourre@gmail.com"
9 WEB_SITE="https://pagure.io/xmlto/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL"
14 DEPENDS="bash libxslt perl-test-pod perl-yaml-syck"
15 BUILD_DEPENDS="docbook-xsl flex util-linux-getopt"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://releases.pagure.org/xmlto/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
33 for file in $install/usr/share/xmlto/format/*/*
34 do
35 sed -i "s|http://docbook.sourceforge.net/release/xsl/current/|\
36 /usr/share/xml/docbook/stylesheet/docbook-xsl/|" \
37 "$file"
38 done
39 }
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/xmlto
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/xmlto/format $fs/usr/share/xmlto
47 }