1 # Maintainer: Felix Yan <felixonmars@gmail.com>
2 # Contributor: Andrew Fyfe <andrew@neptune-one.net>
3 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
8 pkgdesc='Document type definitions for verification of SGML data files against the DocBook rule set.'
10 url='https://www.docbook.org/sgml/'
12 depends=('sgml-common')
13 install='docbook-sgml.install'
14 source=("https://www.docbook.org/sgml/${pkgver}/docbook-${pkgver}.zip")
15 sha256sums=('8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43')
20 local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
27 # Add support for previous versions.
28 cat >> docbook.cat << "EOF"
30 -- Begin Single Major Version catalog changes --
32 PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
33 PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
34 PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
35 PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
36 PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
38 -- End Single Major Version catalog changes --
46 local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
48 install -dm755 "$pkgdir/$DTDDIR"
49 install -m644 docbook.cat "$pkgdir/$DTDDIR/catalog"
50 install -m644 *.dtd *.mod *.dcl "$pkgdir/$DTDDIR"