diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-02-15 20:55:38 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-02-15 20:55:38 (GMT) |
commit | 9be8cfb27c3db59bd8392d411162b6e5c20b9d03 (patch) | |
tree | 74b08d1663b65e74a97609d3e75352e9714e1d5d /abs/extra/docbook-utils/PKGBUILD | |
parent | 85af7820ddf206711d890bdbd707c396824aac15 (diff) | |
download | linhes_pkgbuild-9be8cfb27c3db59bd8392d411162b6e5c20b9d03.zip linhes_pkgbuild-9be8cfb27c3db59bd8392d411162b6e5c20b9d03.tar.gz linhes_pkgbuild-9be8cfb27c3db59bd8392d411162b6e5c20b9d03.tar.bz2 |
ijs: dep of ghostscript
Diffstat (limited to 'abs/extra/docbook-utils/PKGBUILD')
-rw-r--r-- | abs/extra/docbook-utils/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/abs/extra/docbook-utils/PKGBUILD b/abs/extra/docbook-utils/PKGBUILD new file mode 100644 index 0000000..096ead7 --- /dev/null +++ b/abs/extra/docbook-utils/PKGBUILD @@ -0,0 +1,47 @@ +# $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-utils +pkgver=0.6.14 +pkgrel=8 +pkgdesc='Shell scripts to manage DocBook documents' +arch=('any') +url="https://www.sourceware.org/docbook-tools/" +license=('GPL2') +depends=('openjade' 'docbook-dsssl' 'docbook-sgml31') +makedepends=('perl-sgmls') +optdepends=('perl-sgmls: for conversion to man and texinfo' + 'lynx: for conversion to txt' + 'texlive-htmlxml: for conversion to pdf') +conflicts=('docbook2x') +source=(ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/${pkgname}-${pkgver}.tar.gz + docbook-utils-0.6.14-grep_fix-1.patch) +sha256sums=('48faab8ee8a7605c9342fb7b906e0815e3cee84a489182af38e8f7c0df2e92e9' + 'ddf0ddca0a540fd4f34f38b7b9090f96746e37da12b4e2bf8f4174c5ad61f54a') + +prepare() { + cd "${pkgname}-${pkgver}" + patch -Np1 -i ${srcdir}/docbook-utils-0.6.14-grep_fix-1.patch +} + +build() { + cd "${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man + make +} + +package() { + cd "${pkgname}-${pkgver}" + make install DESTDIR="${pkgdir}" htmldir="/usr/share/doc/${pkgname}/html" + + #common alternative names + for doctype in 'html' 'ps' 'dvi' 'man' 'pdf' 'rtf' 'tex' 'texi' 'txt'; do + ln -svf "docbook2${doctype}" "${pkgdir}/usr/bin/db2${doctype}" + done +} |