summaryrefslogtreecommitdiff
path: root/pcr/java-geronimo-jms/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-09-19 13:37:10 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:07 -0300
commit05f2a770c58683c3790e04316976fda90203e7d6 (patch)
tree2784c6e52bd6c57b9dee14bfc6bda61c5f9ee71c /pcr/java-geronimo-jms/PKGBUILD
parent7cacb5ed9a194af56d721b4086622cc964dc2dab (diff)
downloadabslibre-05f2a770c58683c3790e04316976fda90203e7d6.tar.gz
abslibre-05f2a770c58683c3790e04316976fda90203e7d6.tar.bz2
abslibre-05f2a770c58683c3790e04316976fda90203e7d6.zip
java-geronimo-jms: add new package to [pcr]
Diffstat (limited to 'pcr/java-geronimo-jms/PKGBUILD')
-rw-r--r--pcr/java-geronimo-jms/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/pcr/java-geronimo-jms/PKGBUILD b/pcr/java-geronimo-jms/PKGBUILD
new file mode 100644
index 000000000..cade6d39c
--- /dev/null
+++ b/pcr/java-geronimo-jms/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_pkgname=geronimo-jms_1.1_spec
+pkgname=java-geronimo-jms
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="Geronimo API implementation of the JMS 1.1 spec"
+arch=('any')
+url="http://geronimo.apache.org/"
+license=('APACHE')
+depends=('java-runtime')
+makedepends=('java-environment' 'jh' 'subversion')
+source=("${pkgname}-${pkgver}::svn+https://svn.apache.org/repos/asf/geronimo/specs/tags/${_pkgname}-${pkgver}")
+md5sums=('SKIP')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir -p build/classes
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ javac -d "build/classes" $(find "src/main/java" -name \*.java)
+ javadoc -sourcepath "src/main/java" -d "build/javadoc" javax.jms
+
+ jar -cvf "${_pkgname}.jar" -C build/classes .
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Install license file
+ install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+
+ # Install documentation
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r "build/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # Install Maven artifacts
+ export DESTDIR=${pkgdir}
+ jh mvn-install "org.apache.geronimo.specs" ${_pkgname} ${pkgver} \
+ "pom.xml" \
+ "${_pkgname}.jar" \
+ "${_pkgname}.jar"
+ ln -s "/usr/share/java/${_pkgname}.jar" \
+ "${pkgdir}/usr/share/java/${_pkgname}-${pkgver}.jar"
+}