wok view xmlto/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents b34859d087d1
children 88afc2f95640
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 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
34 for file in $install/usr/share/xmlto/format/*/*
35 do
36 sed -i "s|http://docbook.sourceforge.net/release/xsl/current/|\
37 /usr/share/xml/docbook/stylesheet/docbook-xsl/|" \
38 "$file"
39 done
40 }
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/xmlto
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/xmlto/format $fs/usr/share/xmlto
48 }