blob: 95df2f8835cfa13a9f8214e3da6a6c9f44895c52 (
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.2
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=('25157797a0a972c2290b5bc71530c4f7ad646458025e3484412a6e5a9b8c9aa6'
'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"
}
|