void-packages/srcpkgs/docbook/template

64 lines
2.5 KiB
Text

# Template file for 'docbook'
pkgname=docbook
version=4.5
revision=3
noarch="yes"
hostmakedepends="bsdtar"
depends="xmlcatmgr ISOEnts"
sgml_entries="
CATALOG /usr/share/sgml/docbook/2.4.1/catalog --
CATALOG /usr/share/sgml/docbook/3.0/catalog --
CATALOG /usr/share/sgml/docbook/3.1/catalog --
CATALOG /usr/share/sgml/docbook/4.0/catalog --
CATALOG /usr/share/sgml/docbook/4.1/catalog --
CATALOG /usr/share/sgml/docbook/4.2/catalog --
CATALOG /usr/share/sgml/docbook/4.3/catalog --
CATALOG /usr/share/sgml/docbook/4.4/catalog --
CATALOG /usr/share/sgml/docbook/4.5/catalog --"
short_desc="SGML DTD designed for computer documentation"
homepage="http://www.docbook.org"
license="Copyright only"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="
http://www.docbook.org/sgml/$version/$pkgname-$version.zip
http://www.docbook.org/sgml/4.4/$pkgname-4.4.zip
http://www.docbook.org/sgml/4.3/$pkgname-4.3.zip
http://www.docbook.org/sgml/4.2/$pkgname-4.2.zip
http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip
http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip
http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
http://www.oasis-open.org/docbook/sgml/2.4.1/docbk241.zip"
checksum="
8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43
0ac7960409b032c8e517483523ecb92af4e59196a33b3e2c5617daa22b7a8a6c
88f52fab7bd49b2e8f40c525014129c26a5a4b8bbd1494e00387556ec76f95ee
67ebd2c94b342718c6865d2de60f5d4ff02d77a7e4b0d9e72a48c45f2b2635c3
deaafcf0a3677692e7ad4412c0e41c1db3e9da6cdcdb3dd32b2cc1f9c97d6311
dfef22f109779e4cfaafa27b6d381d975ac05eaafb5b3d4407d7043e310817bb
20261d2771b9a052abfa3d8fab1aa62be05791a010281c566f9073bf0e644538
ecf71cbe8ddbad7494ff520d5b4edf73a428c0b159178cb0cb619cba685e61c6
dbac0694e9bcaec43cab80c755ffb02cf8f613bf785ff8506e5ed72efa76a272"
do_extract() {
:
}
do_install() {
local ver dir
for ver in 4.2 4.3 4.4 4.5; do
vernodot=$(echo $ver|sed -e "s|\.||g")
dir=${DESTDIR}/usr/share/sgml/docbook/${ver}
install -d -m755 ${dir}
bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/docbook-${ver}.zip -C ${dir}
install -m644 ${FILESDIR}/catalog${vernodot} ${dir}/catalog
done
for ver in 2.4.1 3.0 3.1 4.0 4.1; do
vernodot=$(echo $ver|sed -e "s|\.||g")
dir=${DESTDIR}/usr/share/sgml/docbook/${ver}
install -d -m755 ${dir}
bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/docbk${vernodot}.zip -C ${dir}
install -m644 ${FILESDIR}/catalog${vernodot} ${dir}/catalog
done
}