PKGBUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Maintainer (arch): Filipe Laíns (FFY00) <lains@archlinux.org>
  2. # Contributor: Lukas Fleischer <lfleischer@archlinux.org>
  3. # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
  4. # Contributor: Simon Lipp <sloonz+aur@gmail.com>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. pkgname=java-batik
  7. pkgver=1.14
  8. pkgrel=1
  9. pkgrel+=.parabola1
  10. pkgdesc='SVG library for Java.'
  11. arch=('any')
  12. url='https://xmlgraphics.apache.org/batik/'
  13. license=('APACHE')
  14. depends=('java-runtime' 'java-commons-io' 'java-commons-logging' 'java-xmlgraphics-commons')
  15. makedepends=('java-environment' 'apache-ant' 'unzip')
  16. source=("https://www.apache.org/dist/xmlgraphics/batik/source/batik-src-$pkgver.tar.gz"{,.asc})
  17. sha512sums=('689c52f58f8f0456c89bd18745d2d92e7590b9054bea71b96be87d44977057d583e78504cbf14afc3e0c585d2383dac3009c7c421de868c847db045e921da8fb'
  18. 'SKIP')
  19. validpgpkeys=('9D5F9D9B3E21B585E8F4551082036989D56B5F17' # Luis Bernardo
  20. '5C9A30FF22B2C02F30261C305B93F1DF7CDB6DEA') # Simon Steiner
  21. prepare() {
  22. cd "batik-$pkgver"
  23. rm -rv lib/*
  24. rm -rv documentation-sources/content/demo/*.jar
  25. ln -sf /usr/share/java/xml-apis.jar lib/xml-apis.jar
  26. ln -sf /usr/share/java/xml-apis-ext.jar lib/xml-apis-ext.jar
  27. #ln -sf /usr/share/java/xalan.jar lib/xalan.jar
  28. #ln -sf /usr/share/java/xercesImpl.jar lib/xercesImpl.jar
  29. ln -sf /usr/share/java/xmlgraphics-commons.jar lib/xmlgraphics-commons.jar
  30. }
  31. build() {
  32. cd batik-$pkgver
  33. ant all-jar
  34. # ant all-jar libs-jar ext-jar transcoder-jar
  35. ant jars libs-jar all-jar
  36. }
  37. package() {
  38. install -d "$pkgdir"/usr/share/java/batik
  39. install -m 644 "$srcdir"/batik-$pkgver/batik-$pkgver/lib/batik-all-$pkgver.jar "$pkgdir"/usr/share/java/batik/batik-all-$pkgver.jar
  40. ln -s batik-all-$pkgver.jar "$pkgdir"/usr/share/java/batik/batik-all.jar
  41. cp --no-preserve=ownership "$srcdir/batik-$pkgver/lib"/*.jar "$pkgdir"/usr/share/java/batik/
  42. }