summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5c6006bd317733ddd1b50b2502b78a2742e5146 (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
# Maintainer: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
# shellcheck disable=2034
# shellcheck disable=2148

pkgname=scalafmt
pkgver=1.5.1
pkgrel=1
pkgdesc="code formatter for the Scala programming language"
arch=(any)
url="https://olafurpg.github.io/scalafmt/"
license=('Apache')
depends=('java-environment' 'bash')
makedepends=('coursier')

package() {
  # shellcheck disable=2154
  mkdir -p "$pkgdir"/usr/bin

  coursier \
    bootstrap com.geirsson:scalafmt-cli_2.12:"$pkgver" \
    -r bintray:scalameta/maven \
    -o "$pkgdir"/usr/bin/scalafmt \
    --standalone \
    --main org.scalafmt.cli.Cli
}