diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-09-10 23:45:22 -0500 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-09-22 16:15:02 -0300 |
commit | 4cd77584e912b67f3cb9f52052148c2bf82a243e (patch) | |
tree | c0db7c835d7308a7fc54090917a55d061aff5a46 /pcr/java-geronimo-interceptor | |
parent | 0d73d71673d1a3b212e7bf51d62f3123a0621cb8 (diff) | |
download | abslibre-4cd77584e912b67f3cb9f52052148c2bf82a243e.tar.gz abslibre-4cd77584e912b67f3cb9f52052148c2bf82a243e.tar.bz2 abslibre-4cd77584e912b67f3cb9f52052148c2bf82a243e.zip |
java-geronimo-interceptor: add new package to [pcr]
Diffstat (limited to 'pcr/java-geronimo-interceptor')
-rw-r--r-- | pcr/java-geronimo-interceptor/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pcr/java-geronimo-interceptor/PKGBUILD b/pcr/java-geronimo-interceptor/PKGBUILD new file mode 100644 index 000000000..cd36c2cc2 --- /dev/null +++ b/pcr/java-geronimo-interceptor/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +_pkgname=geronimo-interceptor_3.0_spec +pkgname=java-geronimo-interceptor +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Geronimo API implementation of the Interceptor 3.0 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 -encoding "UTF-8" -d build/classes $(find "src/main/java" -name \*.java) + javadoc -encoding "UTF-8" -sourcepath "src/main/java" -d build/javadoc javax.interceptor + + 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} \ + "${srcdir}/${pkgname}-${pkgver}/pom.xml" \ + "${srcdir}/${pkgname}-${pkgver}/${_pkgname}.jar" \ + "${_pkgname}.jar" + ln -s "/usr/share/java/${_pkgname}.jar" \ + "${pkgdir}/usr/share/java/${_pkgname}-${pkgver}.jar" +}
\ No newline at end of file |