diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-31 20:44:13 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-31 20:51:11 +0100 |
commit | 415b8b3f0c01dc311aa8f122ae4d33e947b72a59 (patch) | |
tree | fe71f53abda145830c41373718523b94dc6100ce /community/java-jna/APKBUILD | |
parent | 2f0742a50ed80d7e1b7d8e56f06a205c57c3e024 (diff) | |
download | aports-415b8b3f0c01dc311aa8f122ae4d33e947b72a59.tar.bz2 aports-415b8b3f0c01dc311aa8f122ae4d33e947b72a59.tar.xz |
community/java-jna: modernize abuild
Diffstat (limited to 'community/java-jna/APKBUILD')
-rw-r--r-- | community/java-jna/APKBUILD | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/community/java-jna/APKBUILD b/community/java-jna/APKBUILD index e2063b4590..955072990f 100644 --- a/community/java-jna/APKBUILD +++ b/community/java-jna/APKBUILD @@ -17,17 +17,17 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/java-native-access/$_pkgname builddir="$srcdir/$_pkgname-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" # Disable Java AWT support (requires some X libs). - sed -i -E "s/^(CDEFINES=.*)$/\1 -DNO_JAWT/g" native/Makefile || return 1 + sed -i -E "s/^(CDEFINES=.*)$/\1 -DNO_JAWT/g" native/Makefile # Remove bundled libffi sources, we're gonna use headers form libffi-dev. - rm -r native/libffi || return 1 + rm -r native/libffi - find -name "*.jar" -exec rm {} + || return 1 + find -name "*.jar" -exec rm {} + } build() { @@ -45,7 +45,7 @@ package() { depends="$depends $pkgname-native" install -m644 -D "$builddir"/build/jna.jar \ - "$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar || return 1 + "$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar ln -sf $_pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$_pkgname.jar } @@ -55,10 +55,10 @@ native() { cd "$builddir" local sover="$(sed -En 's/^JNA_JNI_VERSION=([^ ]+).*/\1/p' native/Makefile)" - [ -n "$sover" ] || return 1 + [ -n "$sover" ] install -m755 -D build/native-linux-*/$soname \ - "$subpkgdir"/usr/lib/$soname.$sover || return 1 + "$subpkgdir"/usr/lib/$soname.$sover ln -sf $soname.$sover "$subpkgdir"/usr/lib/$soname } |