diff options
-rw-r--r-- | abs/extra/docbook-dsssl/PKGBUILD | 37 | ||||
-rw-r--r-- | abs/extra/docbook-dsssl/docbook-dsssl.install | 24 | ||||
-rw-r--r-- | abs/extra/docbook-dsssl/docbook-style-dsssl.Makefile | 51 | ||||
-rw-r--r-- | abs/extra/docbook-sgml31/PKGBUILD | 38 | ||||
-rw-r--r-- | abs/extra/docbook-sgml31/docbook-sgml31.install | 42 |
5 files changed, 192 insertions, 0 deletions
diff --git a/abs/extra/docbook-dsssl/PKGBUILD b/abs/extra/docbook-dsssl/PKGBUILD new file mode 100644 index 0000000..14afbb6 --- /dev/null +++ b/abs/extra/docbook-dsssl/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + +# Contributor: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net> +# Contributor: Suat SARIALP <muhendis.suat@gmail.com> + +pkgname='docbook-dsssl' +pkgver=1.79 +pkgrel=5 +pkgdesc="DSSSL Stylesheets for DocBook" +arch=('any') +url="http://docbook.sourceforge.net/" +license=('custom') +depends=('sgml-common' 'perl') +install=${pkgname}.install +source=(https://sourceforge.net/projects/docbook/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2 + docbook-style-dsssl.Makefile) +sha1sums=('0ee935247c9f850e930f3b5c162dbc03915469cd' + '104a665b2c3e1520337533862cbd1c1c55d6e01c') + +prepare() { + cd "${pkgname}-${pkgver}" + cp ${srcdir}/docbook-style-dsssl.Makefile Makefile +} + +package(){ + cd "${pkgname}-${pkgver}" + make install \ + BINDIR="${pkgdir}/usr/bin" \ + DESTDIR="${pkgdir}/usr/share/sgml/docbook/dsssl-stylesheets-${pkgver}" \ + MANDIR="${pkgdir}/usr/share/man" + + ln -s dsssl-stylesheets-${pkgver} ${pkgdir}/usr/share/sgml/docbook/dsssl-stylesheets + # license + install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} diff --git a/abs/extra/docbook-dsssl/docbook-dsssl.install b/abs/extra/docbook-dsssl/docbook-dsssl.install new file mode 100644 index 0000000..c81b826 --- /dev/null +++ b/abs/extra/docbook-dsssl/docbook-dsssl.install @@ -0,0 +1,24 @@ +post_install() { + /usr/bin/install-catalog --add \ + /etc/sgml/dsssl-docbook-stylesheets.cat \ + /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog + + /usr/bin/install-catalog --add \ + /etc/sgml/sgml-docbook.cat \ + /etc/sgml/dsssl-docbook-stylesheets.cat + +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + /usr/bin/install-catalog --remove \ + /etc/sgml/dsssl-docbook-stylesheets.cat \ + /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog + + /usr/bin/install-catalog --remove \ + /etc/sgml/sgml-docbook.cat \ + /etc/sgml/dsssl-docbook-stylesheets.cat +} diff --git a/abs/extra/docbook-dsssl/docbook-style-dsssl.Makefile b/abs/extra/docbook-dsssl/docbook-style-dsssl.Makefile new file mode 100644 index 0000000..af1a1fb --- /dev/null +++ b/abs/extra/docbook-dsssl/docbook-style-dsssl.Makefile @@ -0,0 +1,51 @@ +BINDIR = /usr/bin +DESTDIR = /usr/share/sgml/docbook/dsssl-stylesheets-1.74b +MANDIR= /usr/share/man + +all: install + +install: install-bin install-dtd install-dsl install-img install-misc install-man + +install-bin: + mkdir -p $(BINDIR) + install -p bin/collateindex.pl $(BINDIR) + +install-man: + mkdir -p $(MANDIR)/man1 + install -m 644 -p bin/collateindex.pl.1 $(MANDIR)/man1 + +install-dtd: + mkdir -p $(DESTDIR)/dtds/{decls,dbdsssl,html,imagelib,olink} + cp -p dtds/decls/docbook.dcl $(DESTDIR)/dtds/decls + cp -p dtds/decls/xml.dcl $(DESTDIR)/dtds/decls + cp -p dtds/dbdsssl/dbdsssl.dtd $(DESTDIR)/dtds/dbdsssl + cp -p dtds/html/dbhtml.dtd $(DESTDIR)/dtds/html + cp -p dtds/html/ISOlat1.gml $(DESTDIR)/dtds/html + cp -p dtds/imagelib/imagelib.dtd $(DESTDIR)/dtds/imagelib + cp -p dtds/olink/olinksum.dtd $(DESTDIR)/dtds/olink + +install-dsl: + mkdir -p $(DESTDIR)/{lib,common,html,print,olink} + cp -p lib/dblib.dsl $(DESTDIR)/lib + cp -p common/*.dsl $(DESTDIR)/common + cp -p common/*.ent $(DESTDIR)/common + cp -p html/*.dsl $(DESTDIR)/html + cp -p lib/dblib.dsl $(DESTDIR)/lib + cp -p print/*.dsl $(DESTDIR)/print + cp -p olink/*.dsl $(DESTDIR)/olink + +install-img: + mkdir -p $(DESTDIR)/images/callouts + cp -p images/*.gif $(DESTDIR)/images + cp -p images/callouts/*.gif $(DESTDIR)/images/callouts + +#install-test: +# mkdir -p $(DESTDIR)/test/{cases,imagelib,xml} +# cp test/*.* $(DESTDIR)/test +# cp test/cases/*.* $(DESTDIR)/test/cases +# cp test/imagelib/*.* $(DESTDIR)/test/imagelib +# cp test/xml/*.* $(DESTDIR)/test/xml + +install-misc: + cp -p catalog $(DESTDIR) + cp -p VERSION $(DESTDIR) diff --git a/abs/extra/docbook-sgml31/PKGBUILD b/abs/extra/docbook-sgml31/PKGBUILD new file mode 100644 index 0000000..d2a61d3 --- /dev/null +++ b/abs/extra/docbook-sgml31/PKGBUILD @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + +# Contributor: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com> + +pkgname=docbook-sgml31 +pkgver=3.1 +pkgrel=2 +pkgdesc="Legacy docbook-sgml" +arch=('any') +url='http://www.docbook.org/sgml/' +license=('MIT') +depends=('sgml-common') +install=$pkgname.install +source=("http://www.docbook.org/sgml/${pkgver}/docbk31.zip") +sha256sums=('20261d2771b9a052abfa3d8fab1aa62be05791a010281c566f9073bf0e644538') + +build() { + cd "$srcdir" + # This command removes the ENT definitions from the catalog file. + # This command replaces the DTDDECL catalog entry, which is not supported by Linux SGML tools, + # with the SGMLDECL catalog entry. + sed -i -e '/ISO 8879/d' \ + -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \ + docbook.cat +} + +package() { + cd "$srcdir" + + local DTDDIR="usr/share/sgml/docbook-sgml-${pkgver}" + + install -dm755 "$pkgdir/$DTDDIR" + install -m644 docbook.cat "$pkgdir/$DTDDIR/catalog" + install -m644 *.dtd *.mod *.dcl "$pkgdir/$DTDDIR" +} + diff --git a/abs/extra/docbook-sgml31/docbook-sgml31.install b/abs/extra/docbook-sgml31/docbook-sgml31.install new file mode 100644 index 0000000..30f028a --- /dev/null +++ b/abs/extra/docbook-sgml31/docbook-sgml31.install @@ -0,0 +1,42 @@ +# arg 1: the new package version +post_install() { + add_catalog "${1%-*}" +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + remove_catalog "${2%-*}" +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + add_catalog "${1%-*}" +} + +# arg 1: the old package version +pre_remove() { + remove_catalog "${1%-*}" +} +add_catalog() { + install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \ + /usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1 + + install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \ + /etc/sgml/sgml-docbook.cat > /dev/null 2>&1 +} + +remove_catalog() { + install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \ + /usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1 + + install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \ + /etc/sgml/sgml-docbook.cat > /dev/null 2>&1 +} +op=$1 +shift +$op "$@" + +# vim:set syntax=sh ts=4 sw=4 noet: + |