summaryrefslogtreecommitdiff
path: root/java/not-working/java-guava/PKGBUILD
blob: 0250e7183e47864edab95718fddc903154dac44e (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=guava
pkgname=java-guava
pkgver=13.0.1
pkgdesc="Google Core Libraries for Java."
url="https://code.google.com/p/guava-libraries/"
license=('Apache2')

pkgrel=1
arch=('any')
depends=('java-runtime>=5')
makedepends=('java-runtime>=6' 'maven' 'junit-truth' 'jh')
conflicts=('openjdk6') # OpenJDK bug 100167 conflicts
source=("$pkgname::git+https://code.google.com/p/guava-libraries/#tag=v$pkgver")

mksource() {
  cd "$srcdir/$pkgname"
  rm guava/lib/*.jar
  rm guava-test/lib/*.jar
}

build() {
  cd "$srcdir/$pkgname"
  eval `jh mksource`

  ln -s /usr/share/java/junit-truth.jar guava-tests/lib/libtruth.java

  mvn package
}

package() {
    :
}