summaryrefslogtreecommitdiff
path: root/pcr/java-avalon-logkit/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-19 15:46:05 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-19 15:46:05 -0300
commit5e01aa6c69f029cc496c9a39ecf282e363ef7536 (patch)
tree43445cfdcd7fcce831c5625b813b4d0df7a9d770 /pcr/java-avalon-logkit/PKGBUILD
parent75a1023b02f9d1379784c0bf0cc174c092191ba6 (diff)
parent7f5844a3c0e8a803a359a4f385d35541176ce54b (diff)
downloadabslibre-5e01aa6c69f029cc496c9a39ecf282e363ef7536.tar.gz
abslibre-5e01aa6c69f029cc496c9a39ecf282e363ef7536.tar.bz2
abslibre-5e01aa6c69f029cc496c9a39ecf282e363ef7536.zip
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/java-avalon-logkit/PKGBUILD')
-rw-r--r--pcr/java-avalon-logkit/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/pcr/java-avalon-logkit/PKGBUILD b/pcr/java-avalon-logkit/PKGBUILD
new file mode 100644
index 000000000..5c60a84b6
--- /dev/null
+++ b/pcr/java-avalon-logkit/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_libname=avalon-logkit
+pkgname=java-${_libname}
+pkgver=2.1
+pkgrel=1
+pkgdesc="Lightweight and fast designed logging toolkit for Java"
+arch=('any')
+url="https://avalon.apache.org"
+license=('APACHE')
+depends=('java-runtime')
+makedepends=('apache-ant' 'java-geronimo-jms' 'javamail' 'jh' 'junit' 'log4j-1.2' 'tomcat8')
+source=("https://archive.apache.org/dist/excalibur/${_libname}/source/${_libname}-${pkgver}-src.tar.gz"
+ "https://repo.maven.apache.org/maven2/${_libname}/${_libname}/${pkgver}/${_libname}-${pkgver}.pom"
+ 'avalon-logkit-implement_abstract_methods.patch'
+ 'avalon-logkit-utf8_encoding.patch')
+md5sums=('fee6f5f2db70c320aafbfb4cc32c1c43'
+ '830f9ba5ef4f0ceaa2601ca9c87d0fc6'
+ '3faff7e6ecc53c2caf26d707f7b223d2'
+ 'a2310f8d589262001983ceb3780ecf75')
+
+prepare() {
+ cd "${srcdir}/${_libname}-${pkgver}"
+ patch -Np1 -i ../avalon-logkit-utf8_encoding.patch
+ patch -Np1 -i ../avalon-logkit-implement_abstract_methods.patch
+}
+
+build() {
+ cd "${srcdir}/${_libname}-${pkgver}"
+
+ ant dist -Dnoget=true \
+ -Dlibdir=/usr/share/java
+}
+
+package() {
+ cd "${srcdir}/${_libname}-${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 "dist/docs/api" "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # Install Maven artifacts
+ export DESTDIR=${pkgdir}
+ jh mvn-install ${_libname} ${_libname} ${pkgver} \
+ "${srcdir}/${_libname}-${pkgver}.pom" \
+ "dist/${_libname}-${pkgver}.jar" \
+ "${_libname}-${pkgver}.jar"
+ ln -s "/usr/share/java/${_libname}-${pkgver}.jar" \
+ "${pkgdir}/usr/share/java/${_libname}.jar"
+}