blob: 59a1a0f4f5ef6dbd7778479fd69cf925703f9409 (
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-lz4
_pkgname=lz4-java
pkgver=1.4.0
pkgrel=0
pkgdesc="LZ4 compression for Java"
url="https://github.com/jpountz/lz4-java"
arch="all"
license="Apache-2.0"
depends="openjdk8-jre-base $pkgname-native"
makedepends="apache-ant openjdk8"
subpackages="$pkgname-native"
source="$_pkgname-$pkgver.tar.gz::https://github.com/jpountz/$_pkgname/archive/$pkgver.tar.gz
0001-ivy-location.patch
0002-dont-bundle-natives.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
ant ivy-bootstrap
ant jar -lib .ant -Divy.default.ivy.user.dir=/tmp/ivy2
}
package() {
install -m644 -D "$builddir"/dist/lz4-java.jar \
"$pkgdir"/usr/share/java/lz4-$pkgver.jar
ln -sf lz4-$pkgver.jar "$pkgdir"/usr/share/java/lz4.jar
}
native() {
depends=""
local soname="liblz4-java.so"
install -m755 -D "$builddir"/build/jni/*/*/*/*/*/$soname \
"$subpkgdir"/usr/lib/$soname.$pkgver
ln -sf $soname.$pkgver "$subpkgdir"/usr/lib/$soname
}
sha512sums="5032f47e66e66c1e3c6ee5eeb431b2eb70578b5406e3a01fa501951f3864e67a70f39127f937f5af1bc943401b673e412ff3d99fb9539f3e6fa1a28a9b002b56 lz4-java-1.4.0.tar.gz
1e5d1f5bdb87ad89efa423af2ec83921ab7a7fc3de36e6398cbfa90e1b2e07d11834decddf97a17b3dbadf7d2575770b629b35435ce8f1d5ac078554026d1789 0001-ivy-location.patch
cc570080f7682525709ec1999fe5cf8e0ccc6f41dd34ab76159321c02ca504041d4d2bc008f04e312550bd1de611ed77d99dd7f2101a0a3600cbea7ab16ce09d 0002-dont-bundle-natives.patch"
|