wok-current annotate 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 |
rev | line source |
---|---|
yuripourre@17815 | 1 # SliTaz package receipt. |
yuripourre@17815 | 2 |
yuripourre@17815 | 3 PACKAGE="xmlto" |
Hans-G?nter@22158 | 4 VERSION="0.0.28" |
yuripourre@17815 | 5 CATEGORY="utilities" |
yuripourre@17815 | 6 LICENSE="GPL" |
Hans-G?nter@22158 | 7 SHORT_DESC="Tool for converting XML files to various formats." |
yuripourre@17815 | 8 MAINTAINER="yuripourre@gmail.com" |
Hans-G?nter@22158 | 9 WEB_SITE="https://pagure.io/xmlto/" |
Hans-G?nter@22158 | 10 |
yuripourre@17815 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22158 | 12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL" |
yuripourre@17815 | 13 |
Hans-G?nter@22158 | 14 DEPENDS="bash libxslt perl-test-pod perl-yaml-syck" |
Hans-G?nter@22158 | 15 BUILD_DEPENDS="docbook-xsl flex util-linux-getopt" |
yuripourre@17815 | 16 |
pascal@24353 | 17 # What is the latest version available today? |
pascal@24353 | 18 current_version() |
pascal@24353 | 19 { |
pascal@24353 | 20 wget -O - https://releases.pagure.org/xmlto/ 2>/dev/null | \ |
pascal@24353 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24353 | 22 } |
pascal@24353 | 23 |
pascal@24353 | 24 # Rules to configure and make the package. |
yuripourre@17815 | 25 # Rules to configure and make the package. |
yuripourre@17815 | 26 compile_rules() |
yuripourre@17815 | 27 { |
Hans-G?nter@22158 | 28 ./configure \ |
Hans-G?nter@22158 | 29 --prefix=/usr \ |
yuripourre@17815 | 30 $CONFIGURE_ARGS && |
yuripourre@17815 | 31 make && |
yuripourre@17815 | 32 make DESTDIR=$DESTDIR install |
al@18511 | 33 |
Hans-G?nter@22158 | 34 for file in $install/usr/share/xmlto/format/*/* |
Hans-G?nter@22158 | 35 do |
al@18511 | 36 sed -i "s|http://docbook.sourceforge.net/release/xsl/current/|\ |
Hans-G?nter@22158 | 37 /usr/share/xml/docbook/stylesheet/docbook-xsl/|" \ |
Hans-G?nter@22158 | 38 "$file" |
Hans-G?nter@22158 | 39 done |
yuripourre@17815 | 40 } |
yuripourre@17815 | 41 |
yuripourre@17815 | 42 genpkg_rules() |
yuripourre@17815 | 43 { |
al@18510 | 44 mkdir -p $fs/usr/share/xmlto |
Hans-G?nter@22158 | 45 |
Hans-G?nter@22158 | 46 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22158 | 47 cp -a $install/usr/share/xmlto/format $fs/usr/share/xmlto |
yuripourre@17815 | 48 } |