blob: 82a055d3f6d33fc94f3ab3685cb6e73e08717bf2 (
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
|
#!/bin/sh
NAME="gradle"
DESC="Build tool with a focus on build automation and support for multi-language development"
MAKEDEPS="make adoptopenjdk11 "
PKG_VER=8.0.2
SOURCE="https://services.gradle.org/distributions/gradle-$PKG_VER-bin.zip"
package () {
local gradlehome="/usr/share/java/gradle"
local destdir="$PKG_DEST/$gradlehome"
install -dm755 "$destdir"/bin
rm bin/*.bat
install -m755 bin/* "$destdir"/bin
install -dm755 "$PKG_DEST"/usr/bin
ln -sf $gradlehome/bin/gradle "$PKG_DEST"/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 "$PKG_DEST"/usr/share/licenses/gradle/$file
done
}
|