# Template file for 'docbook-dsssl'
pkgname=docbook-dsssl
version=1.79
revision=1
makedepends="xmlcatmgr docbook-xml>=4.2"
short_desc="DSSSL stylesheets for the DocBook DTD"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.docbook.org/"
license="MIT"
distfiles="${SOURCEFORGE_SITE}/docbook/$pkgname-$version.tar.bz2"
checksum=2f329e120bee9ef42fbdd74ddd60e05e49786c5a7953a0ff4c680ae6bdf0e2bc
long_desc="
 The DocBook XSL stylesheets provide a serie of ready-to-use templates to
 process documents based on the DocBook XML DTD. They can generate different
 types of output files, like XHTML, slides, manpages, JavaDoc...

 They are written in a modular fashion. Each of the HTML and FO stylesheets
 starts with a driver file that assembles a collection of component files
 into a complete stylesheet. This modular design puts similar things together
 into smaller files that are easier to write and maintain than one big
 stylesheet."

do_install() {
	rm -rf ${wrksrc}/docsrc
	install -d ${DESTDIR}/usr/share/sgml/docbook/dsssl/modular
	cp -rp ${wrksrc}/* ${DESTDIR}/usr/share/sgml/docbook/dsssl/modular
}

docbook-dsssl_package() {
	depends="${makedepends}"
	noarch="yes"
	sgml_entries="CATALOG /usr/share/sgml/docbook/dsssl/modular/catalog --"
	pkg_install() {
		vmove usr
	}
}