PKGBUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Maintainer(Arch): Guillaume ALAUX <guillaume@archlinux.org>
  2. _libname=xml-commons-resolver
  3. pkgname=java-resolver
  4. pkgver=1.2
  5. pkgrel=4
  6. pkgdesc="XML entity and URI resolver library"
  7. arch=('any')
  8. url="https://xml.apache.org/commons/components/resolver/"
  9. license=('APACHE')
  10. depends=('java-runtime-headless')
  11. makedepends=('apache-ant')
  12. checkdepends=('apache-ant')
  13. source=(https://archive.apache.org/dist/xml/commons/${_libname}-${pkgver}.tar.gz{,.sig})
  14. sha512sums=('0c91057da3198fc488c7b2c20afb029aa4441ad979159c378d532b02caa294d27e730ae2f9857062af5e3815a603a6110c5441dd3fe6b36c342a78beac3c8a6f'
  15. 'SKIP')
  16. validpgpkeys=('72F633CEAF1BEA18FAD0BB99FD49C07AC0926B13') # Michael Glavassevich <mrglavas@ca.ibm.com>
  17. build() {
  18. cd ${_libname}-${pkgver}
  19. ant \
  20. -f resolver.xml \
  21. jar
  22. }
  23. check() {
  24. cd ${_libname}-${pkgver}
  25. ant \
  26. -f resolver.xml \
  27. check
  28. }
  29. package() {
  30. cd ${_libname}-${pkgver}/build
  31. install -Dm644 resolver.jar "${pkgdir}"/usr/share/java/resolver-${pkgver}.jar
  32. ln -s resolver-${pkgver}.jar "${pkgdir}"/usr/share/java/resolver.jar
  33. }