wok annotate xmlto/receipt @ rev 25017

updated openjpeg, openjpeg-dev and openjpeg-tools (1.5.0 -> 1.5.2)
author Hans-G?nter Theisgen
date Wed May 18 06:55:41 2022 +0100 (2022-05-18)
parents 3105f866bc3e
children
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 compile_rules()
yuripourre@17815 26 {
Hans-G?nter@22158 27 ./configure \
Hans-G?nter@22158 28 --prefix=/usr \
yuripourre@17815 29 $CONFIGURE_ARGS &&
yuripourre@17815 30 make &&
yuripourre@17815 31 make DESTDIR=$DESTDIR install
al@18511 32
Hans-G?nter@22158 33 for file in $install/usr/share/xmlto/format/*/*
Hans-G?nter@22158 34 do
al@18511 35 sed -i "s|http://docbook.sourceforge.net/release/xsl/current/|\
Hans-G?nter@22158 36 /usr/share/xml/docbook/stylesheet/docbook-xsl/|" \
Hans-G?nter@22158 37 "$file"
Hans-G?nter@22158 38 done
yuripourre@17815 39 }
yuripourre@17815 40
yuripourre@17815 41 genpkg_rules()
yuripourre@17815 42 {
al@18510 43 mkdir -p $fs/usr/share/xmlto
Hans-G?nter@22158 44
Hans-G?nter@22158 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22158 46 cp -a $install/usr/share/xmlto/format $fs/usr/share/xmlto
yuripourre@17815 47 }