2006-02-23 15:26:10 +00:00
|
|
|
# Description: This is the current version of DocBook
|
|
|
|
# URL: http://www.docbook.org/xml/4.3/
|
|
|
|
# Packager: Robert McMeekin, rrm3 at rrm3 dot org
|
|
|
|
# Maintainer: Johannes Winkelmann, jw at tks6 dot net
|
|
|
|
# Depends on: docbook-xml-entities
|
|
|
|
|
|
|
|
name=docbook-xml-dtd
|
2006-06-10 15:07:17 +00:00
|
|
|
version=4.4
|
2006-06-14 06:21:34 +00:00
|
|
|
release=2
|
2006-06-10 15:07:17 +00:00
|
|
|
source=(http://www.docbook.org/xml/$version/docbook-xml-$version.zip)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2006-06-10 15:07:17 +00:00
|
|
|
sed -i -e 's|^"ent/|"file:///usr/share/xml/ent/docbook/0.3/|' dbcentx.mod
|
2006-02-23 15:26:10 +00:00
|
|
|
install -d -m 0755 $PKG/{etc,usr/share}/xml/dtd/docbook/$version
|
|
|
|
install -m 0644 *.{dtd,mod} $PKG/usr/share/xml/dtd/docbook/$version/
|
|
|
|
xmlcatalog --noout --create $PKG/etc/xml/dtd/docbook/$version/catalog
|
|
|
|
|
|
|
|
DTD_CAT=/etc/xml/dtd/docbook/$version/catalog
|
|
|
|
DTD_PATH=/usr/share/xml/dtd/docbook/$version
|
|
|
|
DTD_URLS="http://www.docbook.org/xml/$version
|
|
|
|
http://www.oasis-open.org/docbook/xml/$version"
|
|
|
|
|
|
|
|
for url in $DTD_URLS; do
|
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"$url" "file://$DTD_PATH" $PKG$DTD_CAT
|
|
|
|
done
|
|
|
|
|
|
|
|
DTD_FILE=($DTD_PATH/docbookx.dtd
|
|
|
|
$DTD_PATH/calstblx.dtd
|
|
|
|
$DTD_PATH/soextblx.dtd)
|
|
|
|
DTD_IDENT=("-//OASIS//DTD DocBook XML V$version//EN"
|
|
|
|
"-//OASIS//DTD DocBook CALS Table Model V$version//EN"
|
|
|
|
"-//OASIS//DTD XML Exchange Table Model 19990315//EN")
|
|
|
|
|
|
|
|
i=0
|
|
|
|
while test $i -lt 3; do
|
|
|
|
xmlcatalog --noout --add "public" \
|
|
|
|
"${DTD_IDENT[$i]}" "file://${DTD_FILE[$i]}" $PKG$DTD_CAT
|
|
|
|
i=$(($i + 1))
|
|
|
|
done
|
|
|
|
|
|
|
|
cd $PKG$DTD_PATH/..; ln -s $version current
|
|
|
|
}
|