summaryrefslogtreecommitdiff
path: root/java/jakarta-oro/PKGBUILD
blob: 24f7a2772575aa5c8af17e5d9071d718a888d53f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgname=jakarta-oro
pkgver=2.0.8
pkgrel=1.1
pkgdesc="Java regular expression and text-processing library"
arch=('any')
url="https://jakarta.apache.org/oro"
license=('Apache')
makedepends=('apache-ant')
source=("http://archive.apache.org/dist/jakarta/oro/${pkgname}-${pkgver}.tar.gz")
sha512sums=('a7f6eb6a088765f273df18ccc823f918737f18ec8772275054839a87f8370f1848e795d481f226c712651104d7598ab86c7d90a991fb039df6581f42f1447920')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  find . \( -name '*.jar' -o -name '*.class' \) -delete
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ant jar
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  install -Dm644 ${pkgname}-${pkgver}.jar \
    "${pkgdir}/usr/share/java/${pkgname}.jar"
}