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