commit 37ab1b6d50bda8ac5519a470449ef95f1c35a530 Author: Matt Housh <jaeger@crux.ninja> Date: Tue Feb 2 22:55:32 2016 -0600 docbook-xml: adopted, added post-install, added unzip to dependency list diff --git a/docbook-xml/Pkgfile b/docbook-xml/Pkgfile index a21ac7b..8fe78e0 100644 --- a/docbook-xml/Pkgfile +++ b/docbook-xml/Pkgfile @@ -1,11 +1,11 @@ # Description: An document type definitions for verification of XML data files against the DocBook rule set. # URL: http://www.docbook.org/ -# Maintainer: Danny Rawlins, crux at romster dot me -# Depends on: libxml2 +# Maintainer: Matt Housh, jaeger at crux dot ninja +# Depends on: libxml2 unzip name=docbook-xml version=4.5 -release=5 +release=6 source=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip diff --git a/docbook-xml/post-install b/docbook-xml/post-install new file mode 100755 index 0000000..35b9956 --- /dev/null +++ b/docbook-xml/post-install @@ -0,0 +1,27 @@ +#!/bin/bash + +CATALOG=/etc/xml/catalog + +if [ ! -f ${CATALOG} ]; then + xmlcatalog --noout --create ${CATALOG} +fi + +xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//ENTITIES DocBook XML" \ + "file:///etc/xml/docbook-xml" \ + ${CATALOG} + +xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML" \ + "file:///etc/xml/docbook-xml" \ + ${CATALOG} + +xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook-xml" \ + ${CATALOG} + +xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook-xml" \ + ${CATALOG}