blob: 9a2530013bd9eca34a6b756eeb267f6fa166f2af (
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
|
#!/bin/bash
# Maintainer: EvaristeGalois11 <turbo dot backslid four zero zero at passinbox dot com>
# Contributor: PumpkinCheshire <me at pumpkincheshire dot com>
# Contributor: <tigersoldi at gmail dot com>
pkgname=google-java-format
pkgver=1.25.0
pkgrel=1
pkgdesc='Reformats Java source code to comply with Google Java Style'
url='https://github.com/google/google-java-format'
arch=('any')
license=('Apache-2.0 AND NCSA')
depends=('java-runtime' 'bash')
source=(
"https://github.com/google/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver-all-deps.jar"
"$pkgname"
"https://raw.githubusercontent.com/google/$pkgname/master/LICENSE"
)
sha256sums=('8bd949e84a6435046cf18ddfa769661eaac9da21b2d3ca46c4ba12f96637bcbb'
'5869a6ec4dd3c681b06e9a0fa1cdef30d0ee722d48115ff4a5e1efb01947e100'
'2c7e23c8000fe553b6f380b5e365dd72198439174f1b6821d5e3b190b54af0dc')
package() {
install -Dm755 "$srcdir/$pkgname-$pkgver-all-deps.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname"
}
|