summaryrefslogtreecommitdiff
path: root/libre/java-commons-net1
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-09-13 20:08:13 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:03 -0300
commit5c81ef396d35b11ff777b681121a233d175dd62e (patch)
tree00b604c47525b3083103d7742814d47f298cf35a /libre/java-commons-net1
parent5b245d505c1f3fcb404634152f4baa20134fa321 (diff)
downloadabslibre-5c81ef396d35b11ff777b681121a233d175dd62e.tar.gz
abslibre-5c81ef396d35b11ff777b681121a233d175dd62e.tar.bz2
abslibre-5c81ef396d35b11ff777b681121a233d175dd62e.zip
java-commons-net1: add new package to [libre]
Diffstat (limited to 'libre/java-commons-net1')
-rw-r--r--libre/java-commons-net1/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/java-commons-net1/PKGBUILD b/libre/java-commons-net1/PKGBUILD
new file mode 100644
index 000000000..a115fb815
--- /dev/null
+++ b/libre/java-commons-net1/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer (Arch): Guillaume ALAUX <guillaume@archlinux.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_libname=commons-net
+pkgname=java-${_libname}1
+pkgver=1.4.1
+pkgrel=2.parabola1
+pkgdesc="Apache library that implements the client side of many basic Internet protocols"
+arch=('any')
+url="http://commons.apache.org/net/"
+license=('APACHE')
+depends=('java-runtime-headless')
+makedepends=('apache-ant' 'jakarta-oro' 'jh')
+source=("https://archive.apache.org/dist/commons/net/source/${_libname}-${pkgver}-src.tar.gz")
+md5sums=('ccbb3f67b55e8a7a676499db4386673c')
+
+build() {
+ cd "${srcdir}/${_libname}-${pkgver}"
+ ant dist -Dnoget=true -lib "/usr/share/java/jakarta-oro.jar"
+}
+
+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}"
+ cp -r "src/java/examples" "${pkgdir}/usr/share/doc/${pkgname}/examples"
+
+ # Install Maven artifacts
+ export DESTDIR=${pkgdir}
+ jh mvn-install ${_libname} ${_libname} ${pkgver} \
+ "${srcdir}/${_libname}-${pkgver}/project.xml" \
+ "${srcdir}/${_libname}-${pkgver}/target/${_libname}-${pkgver}.jar" \
+ "${_libname}.jar"
+ ln -s "/usr/share/java/${_libname}.jar" \
+ "${pkgdir}/usr/share/java/${_libname}-${pkgver}.jar"
+}