blob: 5ff276eb2dab5e5ee4f007cb02b7a95d18d66d86 (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=java-jffi
_pkgname=${pkgname#java-}
pkgver=1.2.12
_libver=${pkgver%.*}
pkgrel=1
pkgdesc="Java Foreign Function Interface"
url="https://github.com/jnr/jffi"
arch="noarch"
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
}
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() {
arch="all"
# 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
}
md5sums="a8837f4ea23e34db8716236d26bcd6cc jffi-1.2.12.tar.gz"
sha256sums="3e8bf503478a2888c55a70acf625ab5d6a92904c6a0e9db00a46db8d44d4c0dc jffi-1.2.12.tar.gz"
sha512sums="7728a96938cf59d0e36fc502642a83345b8f91ffa26eb8fd07d360b8d370eda2aa95b9016aae70e5f283dd5bc662ff8d1d671693d93bcf7e45938ae24aadd6c3 jffi-1.2.12.tar.gz"
|