OCaml 4.13.1 rebuild
[arch-packages.git] / docbook-sgml / repos / extra-any / PKGBUILD
blobe7439d9ac0a46d40784de2d06a12b510ee2317e6
1 # Maintainer: Felix Yan <felixonmars@gmail.com>
2 # Contributor: Andrew Fyfe <andrew@neptune-one.net>
3 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgname=docbook-sgml
6 pkgver=4.5
7 pkgrel=7
8 pkgdesc='Document type definitions for verification of SGML data files against the DocBook rule set.'
9 arch=('any')
10 url='https://www.docbook.org/sgml/'
11 license=('MIT')
12 depends=('sgml-common')
13 install='docbook-sgml.install'
14 source=("https://www.docbook.org/sgml/${pkgver}/docbook-${pkgver}.zip")
15 sha256sums=('8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43')
17 build() {
18   cd "$srcdir"
20   local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
22   sed -i \
23       -e '/ISO 8879/d' \
24       -e '/gml/d' \
25       docbook.cat
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 --
40 EOF
43 package() {
44   cd "$srcdir"
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"