blob: bb5865a0e3392f925b07ea7da4569263e9ab4dc6 (
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
32
33
|
# Maintainer: Martynas Mickevičius <self at 2m dot lt>
_version=2.0.7
pkgname=coursier
pkgver="${_version//-/_}"
pkgrel=1
pkgdesc="Pure Scala Artifact Fetching"
arch=('any')
url="http://get-coursier.io"
license=('Apache')
depends=('java-runtime-headless>=8' 'bash')
source=("builder-$pkgver::https://github.com/coursier/coursier/releases/download/v${_version}/coursier")
sha256sums=('d3ba37e53d9cfa778af481c7099cd1dc485242283e9d2c5c2753f3859908cbd4')
noextract=("builder-$pkgver")
build() {
cd "${srcdir}"
mkdir -p cache bin
export COURSIER_CACHE="${srcdir}/cache"
sh ./builder-$pkgver bootstrap \
"io.get-coursier::coursier-cli:${_version}" \
--java-opt "-noverify" \
--no-default \
-r central \
-r typesafe:ivy-releases \
-f -o "bin/coursier" \
--standalone
}
package() {
install -D -m755 "${srcdir}/bin/coursier" "${pkgdir}/usr/bin/coursier"
}
|