blob: 69bb96b2cc18d9dc3a79e21f1cbc01581333976c (
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
31
|
# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com>
_pkgname=ammonite
_scalaversion=2.12.10
pkgname=ammonite-git
pkgver=r2276.2aa3f84e
pkgrel=1
pkgdesc="Scala Scripting"
arch=(any)
url="http://$_pkgname.io"
license=('MIT')
makedepends=('mill')
depends=('bash' 'java-environment')
replaces=('$_pkgname')
source=("git+https://github.com/lihaoyi/ammonite.git")
md5sums=('SKIP')
pkgver() {
cd $srcdir/$_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir/$_pkgname
mill -i amm[$_scalaversion].assembly
}
package() {
install -Dm755 "$srcdir"/$_pkgname/out/amm/$_scalaversion/assembly/dest/out.jar "$pkgdir"/usr/bin/amm
install -Dm644 "$srcdir"/$_pkgname/LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
}
|