### this file is sourced not run
PKGVER=4.5
PKGBUILD=1
PKGARCH=noarch

# BLFS 7.5 and 8.2
TARBALL=docbook-xml-$PKGVER.zip
MD5SUM=03083e288e87a7e829e437358da7ef9e 
SRC_URL=http://www.docbook.org/xml/4.5/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="docbook-xml: docbook-xml $PKGVER (XML DTD for Docbook)  
docbook-xml:  
docbook-xml: The DocBook XML DTD-$PKGVER package contains document type 
docbook-xml: definitions for verification of XML data files against the 
docbook-xml: DocBook rule set. These are useful for structuring books and 
docbook-xml: software documentation to a standard allowing you to utilize 
docbook-xml: transformations already written for that standard.  
docbook-xml: 
docbook-xml: 
docbook-xml: 
docbook-xml:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	mkdir tmp/docbook &&
	cd tmp/docbook &&
	unzip $SRC_DIR/$TARBALL
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/docbook
	
	# copy files
	install -v -d -m755 /usr/share/xml/docbook/xml-dtd-$PKGVER &&
	install -v -d -m755 /etc/xml &&
	chown -R root:root . &&
	cp -v -af docbook.cat *.dtd ent/ *.mod \
		/usr/share/xml/docbook/xml-dtd-$PKGVER &&
	pkg_build_slackdesc &&

	# update catalog at install time
	cp /tmp/pkg/doinst.sh /install
}


