summaryrefslogtreecommitdiff
path: root/java/java-jarjar/PKGBUILD-1.4
blob: f0ebe9270ec3e404215f41e098a73c3c03e249b0 (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
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=jarjar
pkgname=java-jarjar
pkgver=1.4
pkgdesc="Java static linker (instead of the normal dynamic linking)"
url="https://code.google.com/p/jarjar/"
license=('Apache2')

pkgrel=1
arch=('any')
depends=('java-runtime')
makedepends=('apache-ant' 'java-asm4' 'junit' 'maven' 'jh')
source=("https://${_pkgname}.googlecode.com/files/${_pkgname}-src-${pkgver}.zip")

mksource() {
  cd "$srcdir/$_pkgname-$pkgver"
  rm -f src/test/*.{class,jar}
  rm -f lib/*.jar
}

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  eval `jh mksource`

  ln -s /usr/share/java/asm-4.jar             lib/asm-4.0.jar
  ln -s /usr/share/java/asm-commons-4.jar     lib/asm-commons-4.0.jar
  ln -s /usr/share/java/junit.jar             lib/junit-4.8.1.jar
  ln -s /opt/maven/lib/maven-plugin-api-*.jar lib/maven-plugin-api.jar

  ant jar
}

package() {
  cd "$srcdir/$pkgname"
  install -d "$pkgdir/usr/share/java/$_pkgname"
  install -D "dist/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname"
  ln -s "$_pkgname/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname.jar"
}

sha1sums=('803ad79cf429faeb4d767b2fb45d84bbc904ea04')