# Contributor: Roberto Oliveira # Maintainer: Patrycja Rosa pkgname=gradle pkgver=8.2.1 pkgrel=1 pkgdesc="Build tool with a focus on build automation and support for multi-language development" url="https://gradle.org/" # riscv64 blocked by openjdk8/java-jdk arch="noarch !riscv64" options="!check" license="Apache-2.0" source="https://services.gradle.org/distributions/gradle-$pkgver-bin.zip" # largest supported version in community case "$CARCH" in ppc64le|s390x|arm*|x86) depends="openjdk8" ;; *) depends="openjdk17-jdk" ;; esac # secfixes: # 7.6.1-r0: # - CVE-2023-26053 # 7.2-r0: # - CVE-2021-32751 # 6.8.3-r0: # - CVE-2020-11979 package() { local gradlehome="/usr/share/java/$pkgname" local destdir="$pkgdir/$gradlehome" install -dm755 "$destdir"/bin rm bin/*.bat install -m755 bin/* "$destdir"/bin install -dm755 "$pkgdir"/usr/bin ln -sf $gradlehome/bin/gradle "$pkgdir"/usr/bin/gradle install -dm755 "$destdir"/lib cp -a lib "$destdir"/ # NOTICE file should be redistributed for derivative works local file; for file in LICENSE NOTICE; do install -m644 -D $file "$pkgdir"/usr/share/licenses/$pkgname/$file done } sha512sums=" 9956b05d3ce9ef6f19fbaf6b39b01d979f97b659488254765185e67e19cf469e7fa03af1d1f71fefd62b2276f7085dea9040f3177217829c78a9ac97584ce2d1 gradle-8.2.1-bin.zip "