From 8efd4034846a00a6e07513451ce723df89fe5028 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 3 Dec 2012 21:04:46 -0500 Subject: improve java/jna to build in a chroot --- java/jna/PKGBUILD | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'java') diff --git a/java/jna/PKGBUILD b/java/jna/PKGBUILD index db5f552cb..f7248a637 100644 --- a/java/jna/PKGBUILD +++ b/java/jna/PKGBUILD @@ -13,16 +13,15 @@ source=("git://github.com/twall/jna.git#tag=${pkgver}" #### -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') depends=('java-environment' 'libffi') -makedepends=('apache-ant' 'zip') -checkdepends=('junit' 'icedtea-web-java7') +makedepends=('apache-ant' 'zip' 'makepkg-git' 'git') +checkdepends=('icedtea-web-java7' 'junit' 'libxtst') options=('!makeflags') unset _JAVA_OPTIONS _M2_LOCALREPO='/usr/share/maven/repository' -. /etc/profile.d/jdk.sh _ant_options=( '-Ddynlink.native=true' # use the system install of libffi @@ -30,7 +29,7 @@ _ant_options=( #### -mksource() { +prepare() { cd "$srcdir/jna" find . -name '*.jar' -delete rm -rf dist @@ -51,7 +50,6 @@ mksource() { #### build() { - mksource cd "$srcdir/jna" # Because JNA's release process is ridiculous, it wants a jar file for every @@ -79,7 +77,7 @@ check() { # Create a foke home directory to trash mkdir "$srcdir/user.home" - export _JAVA_OPTIONS="-Duser.home=$srcdir/user.home" + export _JAVA_OPTIONS="-Duser.home=$srcdir/user.home -Djava.awt.headless=true" # The webstart test looks for this config file mkdir -p "$srcdir/user.home/.java/deployment" -- cgit v1.2.3-54-g00ecf