blob: 3ecf36e0a1f7d3711e1c5e9eb02e4a9072567366 (
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.16
_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="f454b719c42fbfe1f43007c4a2c509424b7689f4a926432b6706e505b3b90e6cdae58695413a62655ad2e9513c206d0965e72a865a63c9806687238def230bf2 jffi-1.2.16.tar.gz"
|