# Maintainer: Luke Shumaker pkgname=jna pkgver=3.4.2 pkgdesc="Provides Java programs easy access to native shared libraries" url="https://github.com/twall/jna" license=('LGPL') source=("git://github.com/twall/jna.git#tag=${pkgver}" 'libre-without-clover.patch' 'bugfix-type-inference.patch' 'webstart-test.keystore') #### pkgrel=2 arch=('i686' 'x86_64') depends=('java-environment' 'libffi') makedepends=('apache-ant' 'zip' 'makepkg-git' 'git') checkdepends=('icedtea-web-java7' 'junit' 'libxtst') options=('!makeflags') unset _JAVA_OPTIONS _M2_LOCALREPO='/usr/share/maven/repository' _ant_options=( '-Ddynlink.native=true' # use the system install of libffi ) #### prepare() { cd "$srcdir/jna" find . -name '*.jar' -delete rm -rf dist rm -rf native/libffi # make sure it doesn't cheat rm lib/clover.license rm w32ce-test.lnk ln -s /usr/share/java/junit.jar lib/ # Create an emtpy zip (jar) file cd "$srcdir" touch file zip empty.zip file zip -d empty.zip file rm file } #### build() { cd "$srcdir/jna" # Because JNA's release process is ridiculous, it wants a jar file for every # architecture to be present. So let's just dump in an empty jar file! sed -n 's|\s*