summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-12-03 21:04:46 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-12-03 21:04:46 -0500
commit8efd4034846a00a6e07513451ce723df89fe5028 (patch)
tree5e14b76afcad399df04f89a4c64fb34f9300c0e5 /java
parent9dd1b450f15836d74363ed5a7dc2fe7261f94c16 (diff)
downloadabslibre-8efd4034846a00a6e07513451ce723df89fe5028.tar.gz
abslibre-8efd4034846a00a6e07513451ce723df89fe5028.tar.bz2
abslibre-8efd4034846a00a6e07513451ce723df89fe5028.zip
improve java/jna to build in a chroot
Diffstat (limited to 'java')
-rw-r--r--java/jna/PKGBUILD12
1 files changed, 5 insertions, 7 deletions
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"