summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-07-03 10:01:24 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-07-03 10:01:24 -0500
commit2c885fe5021a62efc0989f2db9e32b2530aa3103 (patch)
tree9c8ca15a0180b103986603f6cac6d2982ebea82f
parent50bf1fdcface8445c8b4fed58623fc85585a92c6 (diff)
downloadabslibre-2c885fe5021a62efc0989f2db9e32b2530aa3103.tar.gz
abslibre-2c885fe5021a62efc0989f2db9e32b2530aa3103.tar.bz2
abslibre-2c885fe5021a62efc0989f2db9e32b2530aa3103.zip
docbook-xsl-saxon: add new packages to [pcr]
-rw-r--r--pcr/docbook-xsl-saxon/PKGBUILD50
-rw-r--r--pcr/docbook-xsl-saxon/pom.xml6
2 files changed, 56 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"
+}
diff --git a/pcr/docbook-xsl-saxon/pom.xml b/pcr/docbook-xsl-saxon/pom.xml
new file mode 100644
index 000000000..768825c0f
--- /dev/null
+++ b/pcr/docbook-xsl-saxon/pom.xml
@@ -0,0 +1,6 @@
+<project>
+<modelVersion>4.0.0</modelVersion>
+<groupId>net.sf.docbook</groupId>
+<artifactId>docbook-xsl-saxon</artifactId>
+<version>1.0.0</version>
+</project>