aboutsummaryrefslogtreecommitdiffstats
path: root/community/gradle/APKBUILD
blob: 38cdb68894d18d16cf4e79442eef1c5a678c58ee (plain) (blame)
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
43
44
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=gradle
pkgver=7.1.1
pkgrel=0
pkgdesc="Build tool with a focus on build automation and support for multi-language development"
url="https://gradle.org/"
# mips64 and riscv64 blocked by openjdk8/java-jdk
arch="noarch !mips64 !riscv64"
options="!check"
license="Apache-2.0"
depends="java-jdk"
source="https://services.gradle.org/distributions/gradle-$pkgver-bin.zip"

# secfixes:
#   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
	install -m644 lib/*.jar "$destdir"/lib

	install -dm755 "$destdir"/lib/plugins
	install -m644 lib/plugins/*.jar "$destdir"/lib/plugins

	# 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="
c503ea38e351b47e245e6d1b5412d11f1d52ab50040b58619742e0cb88b366bb16f029f02030507d0632fda7de2b208dc4c39f9a2297d46b87d11f38c90fc796  gradle-7.1.1-bin.zip
"