wok annotate docbook-xml-42/receipt @ rev 25506
memtest, pack: cleanup
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 09 16:28:01 2023 +0000 (18 months ago) |
parents | eb8067417980 |
children | 73f36875e5a7 |
rev | line source |
---|---|
slaxemulator@9349 | 1 # SliTaz package receipt. |
slaxemulator@9349 | 2 |
slaxemulator@9349 | 3 PACKAGE="docbook-xml-42" |
slaxemulator@9349 | 4 VERSION="4.2" |
slaxemulator@9349 | 5 CATEGORY="development" |
slaxemulator@9349 | 6 SHORT_DESC="A widely used XML scheme for writing documentation and help. (version 4.2)" |
slaxemulator@9349 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15579 | 8 LICENSE="MIT" |
slaxemulator@9349 | 9 SOURCE="docbook-xml" |
slaxemulator@9349 | 10 TARBALL="${SOURCE}-${VERSION}.zip" |
slaxemulator@9349 | 11 WEB_SITE="http://www.oasis-open.org/docbook/" |
slaxemulator@9349 | 12 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL" |
slaxemulator@9349 | 13 |
pascal@15579 | 14 DEPENDS="libxml2-tools libxml2" |
pascal@15579 | 15 |
pascal@24694 | 16 # What is the latest version available today? |
pascal@24694 | 17 current_version() |
pascal@24694 | 18 { |
pascal@24694 | 19 wget -O - http://www.docbook.org/xml/ 2>/dev/null | \ |
pascal@24694 | 20 sed 's|<li>|&\n|g' | sed '/>4\.2/!d;/[0-9][Cb]/d;s|.*">||;s|/<.*||' | sort -Vr | sed q |
pascal@24694 | 21 } |
pascal@24694 | 22 |
slaxemulator@9349 | 23 # Rules to configure and make the package. |
slaxemulator@9349 | 24 compile_rules() |
slaxemulator@9349 | 25 { |
slaxemulator@9349 | 26 cd $src |
slaxemulator@9349 | 27 mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION} |
slaxemulator@9349 | 28 cp -dRf docbook.cat *.dtd ent/ *.mod \ |
slaxemulator@9349 | 29 $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION} |
slaxemulator@9349 | 30 |
slaxemulator@9349 | 31 } |
slaxemulator@9349 | 32 |
slaxemulator@9349 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9349 | 34 genpkg_rules() |
slaxemulator@9349 | 35 { |
slaxemulator@9349 | 36 mkdir -p $fs |
pascal@15579 | 37 cp -a $install/usr $fs |
slaxemulator@9349 | 38 } |