PKGBUILD 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Maintainer (arch): Lukas Fleischer <archlinux at cryptocrack dot de>
  2. # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
  3. # Contributor: Simon Lipp <sloonz+aur@gmail.com>
  4. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  5. _pkgname=commons-io
  6. pkgname=java-${_pkgname}
  7. pkgver=2.5
  8. pkgrel=1.parabola1
  9. pkgdesc="IO related classes for Java."
  10. arch=('any')
  11. url="https://commons.apache.org/io/"
  12. license=('APACHE')
  13. depends=('java-runtime')
  14. makedepends=('apache-ant' 'jh')
  15. source=("https://archive.apache.org/dist/commons/io/source/${_pkgname}-${pkgver}-src.tar.gz")
  16. sha256sums=('631f75ea09870b40bb140dff456a36be6965619ba51fa23f4c7d4b966520be60')
  17. build() {
  18. cd "${srcdir}/${_pkgname}-${pkgver}-src"
  19. ant jar javadoc -Dcomponent.version=${pkgver}
  20. }
  21. package() {
  22. cd "${srcdir}/${_pkgname}-${pkgver}-src"
  23. # Install license file
  24. install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
  25. # Install documentation
  26. install -d "${pkgdir}/usr/share/doc/${pkgname}"
  27. cp -r "target/apidocs" "${pkgdir}/usr/share/doc/${pkgname}"
  28. # Install Maven artifacts
  29. export DESTDIR=${pkgdir}
  30. jh mvn-install ${_pkgname} ${_pkgname} ${pkgver} \
  31. pom.xml \
  32. "target/${_pkgname}-${pkgver}.jar" \
  33. "${_pkgname}-${pkgver}.jar"
  34. ln -s "/usr/share/java/${_pkgname}-${pkgver}.jar" \
  35. "${pkgdir}/usr/share/java/${_pkgname}.jar"
  36. }