blob: 4a8edbacd733ccb5841c3f6a3f318af0c1ba91b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=java-jffi
_pkgname=${pkgname#java-}
pkgver=1.2.15
_libver=${pkgver%.*}
pkgrel=0
pkgdesc="Java Foreign Function Interface"
url="https://github.com/jnr/jffi"
arch="all"
license="ASL-2.0"
depends="openjdk8-jre-base"
makedepends="apache-ant file openjdk8"
subpackages="$pkgname-native"
source="https://github.com/jnr/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$_pkgname-$pkgver"
build() {
cd "$builddir"
ant jar
}
check() {
cd "$builddir"
ant test
}
package() {
depends="$pkgname-native"
install -m644 -D "$builddir"/dist/jffi.jar \
"$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar || return 1
ln -sf $_pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$_pkgname.jar
}
native() {
# Note: jffi expects file named libjffi-x.y.so, not libjffi.so.x.y.
install -m755 -D "$builddir"/build/jni/libjffi-$_libver.so \
"$subpkgdir"/usr/lib/libjffi-$_libver.so
}
sha512sums="8e27f4bbfd77a14029031b5a4041a6372cbc6d120e15a2b83d4e255156b6ca441a4f6c38b8fa471ccf034743fa10841645e33f501eaf5716e4540ac84d191edc jffi-1.2.15.tar.gz"
|