aboutsummaryrefslogtreecommitdiffstats
path: root/community/java-jna
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 18:16:06 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 18:16:43 +0200
commit56f675a6fb20c9bea316e51229582dfb77408a96 (patch)
treeace355e78f69862f271c61fdce9f867654a259f6 /community/java-jna
parent6160787ecffdf042dd438183d9f1c40264cdba49 (diff)
downloadaports-56f675a6fb20c9bea316e51229582dfb77408a96.tar.bz2
aports-56f675a6fb20c9bea316e51229582dfb77408a96.tar.xz
community/java-jna: fix depends and arch
Diffstat (limited to 'community/java-jna')
-rw-r--r--community/java-jna/APKBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/community/java-jna/APKBUILD b/community/java-jna/APKBUILD
index cd2d10b952..47540aa1f2 100644
--- a/community/java-jna/APKBUILD
+++ b/community/java-jna/APKBUILD
@@ -3,7 +3,7 @@
pkgname=java-jna
_pkgname=${pkgname#java-}
pkgver=4.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="JNA provides Java programs easy access to native shared libraries."
url="https://github.com/java-native-access/jna"
arch="x86 x86_64"
@@ -17,6 +17,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/java-native-access/$_pkgname
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
+ default_prepare || return 1
+
cd "$builddir"
# Disable Java AWT support (requires some X libs).
@@ -26,8 +28,6 @@ prepare() {
rm -r native/libffi || return 1
find -name "*.jar" -exec rm {} + || return 1
-
- default_prepare # apply patches
}
build() {
@@ -42,7 +42,8 @@ build() {
}
package() {
- depends="$pkgname"
+ arch="noarch"
+ depends="$depends $pkgname-native"
install -m644 -D "$builddir"/build/jna.jar \
"$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar || return 1
@@ -50,7 +51,6 @@ package() {
}
native() {
- arch="all"
local soname="libjnidispatch.so"
cd "$builddir"