diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-07-03 10:01:24 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-07-03 10:01:24 -0500 |
commit | 2c885fe5021a62efc0989f2db9e32b2530aa3103 (patch) | |
tree | 9c8ca15a0180b103986603f6cac6d2982ebea82f /pcr/docbook-xsl-saxon/PKGBUILD | |
parent | 50bf1fdcface8445c8b4fed58623fc85585a92c6 (diff) | |
download | abslibre-2c885fe5021a62efc0989f2db9e32b2530aa3103.tar.gz abslibre-2c885fe5021a62efc0989f2db9e32b2530aa3103.tar.bz2 abslibre-2c885fe5021a62efc0989f2db9e32b2530aa3103.zip |
docbook-xsl-saxon: add new packages to [pcr]
Diffstat (limited to 'pcr/docbook-xsl-saxon/PKGBUILD')
-rw-r--r-- | pcr/docbook-xsl-saxon/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pcr/docbook-xsl-saxon/PKGBUILD b/pcr/docbook-xsl-saxon/PKGBUILD new file mode 100644 index 000000000..a816a5b22 --- /dev/null +++ b/pcr/docbook-xsl-saxon/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=docbook-xsl-saxon +pkgver=1.00 +pkgrel=3.parabola1 +pkgdesc="Java extensions for use with the DocBook XML stylesheets and the Saxon XSLT engine" +arch=('any') +url="http://docbook.sourceforge.net/" +license=('custom:MIT') +depends=('java-runtime' 'docbook-xsl' 'saxon6') +makedepends=('apache-ant' 'saxon6' 'jh') +source=("http://sourceforge.net/projects/docbook/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2" + 'pom.xml') +sha1sums=('cb2069bcfd81cfa272ef14d97de7ec2cc099ffe4' + '5bdd221ecbc90a508dc213dbfa73de92db928fa7') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + rm -rv *.jar + rm -rv {classes,javadoc} +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ant \ + -Dplatform.active=parabola \ + -Dplatforms.parabola.home=/usr/lib/jvm/default \ + -Djavac.classpath=/usr/share/java/saxon.jar \ + -Ddist.jar=${pkgname}.jar +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Install license file + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + + # Install documentation + install -d "${pkgdir}/usr/share/doc/${pkgname}" + cp -r javadoc "${pkgdir}/usr/share/doc/${pkgname}" + + # Install Maven artifacts + export DESTDIR=${pkgdir} + jh mvn-install net.sf.docbook ${pkgname} ${pkgver} \ + "${srcdir}/pom.xml" \ + "${pkgname}.jar" \ + "${pkgname}-${pkgver}.jar" + ln -s "/usr/share/java/${pkgname}-${pkgver}.jar" \ + "${pkgdir}/usr/share/java/${pkgname}.jar" +} |