PKGBUILD 901 B

1234567891011121314151617181920212223242526272829303132
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. # Maintainer (aur): Xiao-Long Chen <chenxiaolong@cxl.epac.to>
  3. # Rationale: Build dependency of apache-ant
  4. pkgname=jakarta-oro
  5. pkgver=2.0.8
  6. pkgrel=1.2
  7. pkgdesc="Java regular expression and text-processing library"
  8. arch=('any')
  9. url="https://jakarta.apache.org/oro"
  10. license=('Apache')
  11. makedepends=('apache-ant')
  12. source=("http://archive.apache.org/dist/jakarta/oro/${pkgname}-${pkgver}.tar.gz")
  13. sha512sums=('a7f6eb6a088765f273df18ccc823f918737f18ec8772275054839a87f8370f1848e795d481f226c712651104d7598ab86c7d90a991fb039df6581f42f1447920')
  14. prepare() {
  15. cd "${srcdir}/${pkgname}-${pkgver}"
  16. find . \( -name '*.jar' -o -name '*.class' \) -delete
  17. }
  18. build() {
  19. cd "${srcdir}/${pkgname}-${pkgver}"
  20. ant jar
  21. }
  22. package() {
  23. cd "${srcdir}/${pkgname}-${pkgver}"
  24. install -Dm644 ${pkgname}-${pkgver}.jar \
  25. "${pkgdir}/usr/share/java/${pkgname}.jar"
  26. }