summaryrefslogtreecommitdiffstats
path: root/abs/extra/docbook-dsssl
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
commit5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch)
treef13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/extra/docbook-dsssl
parent8d35f28049488f2585ef765bf48e7a58958fd587 (diff)
parent04697136037cb5341ee6c051f8aaa265c0400c82 (diff)
downloadlinhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/extra/docbook-dsssl')
-rw-r--r--abs/extra/docbook-dsssl/PKGBUILD37
-rw-r--r--abs/extra/docbook-dsssl/docbook-dsssl.install24
-rw-r--r--abs/extra/docbook-dsssl/docbook-style-dsssl.Makefile51
3 files changed, 112 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)