File tree 3 files changed +67
-0
lines changed
3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ pkgbase = google-java-format
2
+ pkgdesc = Reformats Java source code to comply with Google Java Style
3
+ pkgver = 1.15.0
4
+ pkgrel = 1
5
+ url = https://github.com/google/google-java-format
6
+ arch = any
7
+ license = Apache
8
+ depends = java-runtime
9
+ depends = bash
10
+ source = https://github.com/google/google-java-format/releases/download/v1.15.0/google-java-format-1.15.0-all-deps.jar
11
+ source = google-java-format
12
+ source = https://raw.githubusercontent.com/google/google-java-format/master/LICENSE
13
+ sha512sums = 2bde8271b17725fb0cf552f97d4852dacb040c1d82432bc325ebdf94391bdf83df9e340071cc17e326f9fad3756e2fa09dfd6ba756d67b5e311fda0298e8b2be
14
+ sha512sums = 3d80ed0455c5d6a6193c790d55bcdc1d79289f6ff7177d4f040857b5bcffead0745b7d592f72e5e9e327ba0b9028c319ad3ffbbfa50f0dbce21d03c4e1081b70
15
+ sha512sums = 2540a2214e70e97c3f4bba2fe95d3ebfdb5a6b66c056cfe1ae5ce259bfc203b8273eb46adc0adf4aec069ef01de7e2223403267f4398c4171bc7e763140f40b6
16
+
17
+ pkgname = google-java-format
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Disable various shellcheck rules that produce false positives in this file.
4
+ # Repository rules should be added to the .shellcheckrc file located in the
5
+ # repository root directory, see https://github.com/koalaman/shellcheck/wiki
6
+ # and https://archiv8.github.io for further information.
7
+ # shellcheck disable=SC2034,SC2154
8
+ # ToDo: Add files: User documentation
9
+ # ToDo: Add files: Tooling
10
+ # FixMe: Namcap warnings and errors
11
+
12
+ # Maintainer: Ross Clark <[email protected] >
13
+ # Contributor: Ross Clark <[email protected] >
14
+
15
+ pkgname=google-java-format
16
+ pkgver=1.15.0
17
+ pkgrel=1
18
+ pkgdesc=" Reformats Java source code to comply with Google Java Style"
19
+ url=" https://github.com/google/google-java-format"
20
+ arch=(" any" )
21
+ license=(" Apache" )
22
+ depends=(
23
+ " java-runtime"
24
+ " bash"
25
+ )
26
+ source=(
27
+ " https://github.com/google/$pkgname /releases/download/v$pkgver /$pkgname -$pkgver -all-deps.jar"
28
+ " $pkgname "
29
+ " https://raw.githubusercontent.com/google/$pkgname /master/LICENSE"
30
+ )
31
+ sha512sums=(
32
+ " 2bde8271b17725fb0cf552f97d4852dacb040c1d82432bc325ebdf94391bdf83df9e340071cc17e326f9fad3756e2fa09dfd6ba756d67b5e311fda0298e8b2be"
33
+ " 3d80ed0455c5d6a6193c790d55bcdc1d79289f6ff7177d4f040857b5bcffead0745b7d592f72e5e9e327ba0b9028c319ad3ffbbfa50f0dbce21d03c4e1081b70"
34
+ " 2540a2214e70e97c3f4bba2fe95d3ebfdb5a6b66c056cfe1ae5ce259bfc203b8273eb46adc0adf4aec069ef01de7e2223403267f4398c4171bc7e763140f40b6"
35
+ )
36
+
37
+ package () {
38
+ install -Dm755 " $srcdir /$pkgname -$pkgver -all-deps.jar" " $pkgdir /usr/share/java/$pkgname /$pkgname .jar"
39
+ install -Dm755 " $srcdir /$pkgname " " $pkgdir /usr/bin/$pkgname "
40
+ install -Dm644 LICENSE* -t " $pkgdir /usr/share/licenses/$pkgname "
41
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ exec java \
4
+ --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
5
+ --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
6
+ --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
7
+ --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
8
+ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
9
+ -jar ' /usr/share/java/google-java-format/google-java-format.jar' " $@ "
You can’t perform that action at this time.
0 commit comments