# SliTaz package receipt. PACKAGE="docbook-xml-43" VERSION="4.3" CATEGORY="development" SHORT_DESC="A widely used XML scheme for writing documentation and help. (version 4.3)" MAINTAINER="slaxemulator@gmail.com" LICENSE="MIT" SOURCE="docbook-xml" TARBALL="${SOURCE}-${VERSION}.zip" WEB_SITE="http://www.oasis-open.org/docbook/" WGET_URL="https://www.docbook.org/xml/$VERSION/$TARBALL" DEPENDS="libxml2-tools libxml2" # What is the latest version available today? current_version() { wget -O - http://www.docbook.org/xml/ 2>/dev/null | \ sed 's|
  • |&\n|g' | sed '/>4\.3/!d;/[0-9][Cb]/d;s|.*">||;s|/<.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION} cp -dRf docbook.cat *.dtd ent/ *.mod \ $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION} } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs cp -a $install/usr $fs }