blob: e26347d4940095b71092b5566404c161d114346f (
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
34
|
# Maintainer: Martynas Mickevičius <self at 2m dot lt>
_version=2.0.16
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=('631e8fbc1a3beb71a7130539b3b01852cfbe02edb94c5e9c6785981a0aee1e9c')
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"
}
|