mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
This commit updates $license variable in all APKBUILDs to comply with short names specified by SPDX version 3.0 [1] where possible. It was done using find-and-replace method on substrings inside $license variables. Only license names were updated, not "expressions" specifying relation between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or exceptions (e.g. "X with exceptions"). Many licenses have a version or multiple variants, e.g. MPL-2.0, BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not contain license version or variant. Since there's no way how to infer this information just from abuild, it were left without the variant suffix or version, i.e. non SPDX compliant. GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later (formerly e.g. GPL-2.0+). We did not systematically noted distinguish between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g. GPL2+) were left without the variant suffix, i.e. non SPDX compliant. Note: This commit just fixes format of the license names, no verification has been done if the specified license information is actually correct! [1]: https://spdx.org/licenses/
56 lines
2.3 KiB
Plaintext
56 lines
2.3 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=java-lz4
|
|
_pkgname=lz4-java
|
|
pkgver=1.3.0
|
|
pkgrel=2
|
|
pkgdesc="LZ4 compression for Java"
|
|
url="https://github.com/jpountz/lz4-java"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="openjdk8-jre-base"
|
|
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
|
|
0003-prefer-system-lib.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
|
|
ant ivy-bootstrap || return 1
|
|
ant jar -lib .ant -Divy.default.ivy.user.dir=/tmp/ivy2
|
|
}
|
|
|
|
package() {
|
|
depends="$depends $pkgname-native"
|
|
|
|
install -m644 -D "$builddir"/dist/lz4.jar \
|
|
"$pkgdir"/usr/share/java/lz4-$pkgver.jar || return 1
|
|
ln -sf lz4-$pkgver.jar "$pkgdir"/usr/share/java/lz4.jar
|
|
}
|
|
|
|
native() {
|
|
local soname="liblz4-java.so"
|
|
|
|
install -m755 -D "$builddir"/build/jni/*/*/$soname \
|
|
"$subpkgdir"/usr/lib/$soname.$pkgver || return 1
|
|
ln -sf $soname.$pkgver "$subpkgdir"/usr/lib/$soname
|
|
}
|
|
|
|
md5sums="b9a4eb57fd0667df96135854c9e6f139 lz4-java-1.3.0.tar.gz
|
|
c87e95c4d7df4b89d17fef542078a61a 0001-ivy-location.patch
|
|
d131c75a10e298751f34c6d545ed94a2 0002-dont-bundle-natives.patch
|
|
ee4c9d7574586e74f2577523bfeab564 0003-prefer-system-lib.patch"
|
|
sha256sums="7fdfe31304a50a830f4f2e8207cdfe58126270e2f24d7c318540e2b263bead78 lz4-java-1.3.0.tar.gz
|
|
bb5a2779353a40a15d8ee24438a199c5c023db1605b491260afb3a628684001b 0001-ivy-location.patch
|
|
117acb8ff84b387cd91acec340b870fab3359804cdd76e9f0fc574f013d30141 0002-dont-bundle-natives.patch
|
|
548168e3344538e87be537b13d746c3e73fb3ed29f0daa1776eb62f7ba8240c1 0003-prefer-system-lib.patch"
|
|
sha512sums="417141a02b1ed599499b352d96e3e7a2b84376dbd84f7042563c90e30b3c6d5ebc132f9e96eeff717bc790e615123acb53887bfaea8566870cba78d05b2d8048 lz4-java-1.3.0.tar.gz
|
|
1e5d1f5bdb87ad89efa423af2ec83921ab7a7fc3de36e6398cbfa90e1b2e07d11834decddf97a17b3dbadf7d2575770b629b35435ce8f1d5ac078554026d1789 0001-ivy-location.patch
|
|
cc570080f7682525709ec1999fe5cf8e0ccc6f41dd34ab76159321c02ca504041d4d2bc008f04e312550bd1de611ed77d99dd7f2101a0a3600cbea7ab16ce09d 0002-dont-bundle-natives.patch
|
|
b94fd00b7a1410c55103a1a15422641970366a36dd3d87cb25cd39f90fc740cbf92affea6af6bae2595663bd1e2943ab129399c3907168528a91941e19e60804 0003-prefer-system-lib.patch"
|