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

pkgname=scala-cli-tools
pkgver=0.3.0
pkgrel=1
pkgdesc="collection of command-line tools written in Scala"
arch=('i686' 'x86_64')
url="https://github.com/wookietreiber/scala-cli-tools"
license=('GPL')
depends=('gc' 'libunwind' 're2')
makedepends=('clang' 'sbt')
conflicts=('hl-git' 'highlight-wookietreiber')
provides=('highlight-wookietreiber')
replaces=('highlight-wookietreiber')
source=("$pkgname-$pkgver.tar.gz::https://github.com/wookietreiber/scala-cli-tools/archive/v$pkgver.tar.gz")
md5sums=('6abef2ceca3079e573f60c949ffd7a68')

package() {
  # shellcheck disable=2154
  cd "$srcdir"/$pkgname-$pkgver || exit 1

  # shellcheck disable=2154
  PREFIX=$pkgdir/usr NATIVE_MODE=release \
    sbt -mem 2048 \
      -ivy /tmp/makepkg/.ivy2 \
      -sbt-dir /tmp/makepkg/.sbt \
      install
}