void-packages/srcpkgs/sbt/template

27 lines
830 B
Bash

# Template file for 'sbt'
pkgname=sbt
version=1.2.7
revision=1
noarch=yes
wrksrc="$pkgname"
depends="virtual?java-environment"
short_desc="The interactive build tool for Scala and Java"
maintainer="Damian Czaja <trojan295@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.scala-sbt.org"
distfiles="https://sbt-downloads.cdnedge.bluemix.net/releases/v${version}/${pkgname}-${version}.tgz
https://raw.githubusercontent.com/sbt/sbt/v${version}/LICENSE>LICENSE.txt"
checksum="2625cbd8db75ec9b4a57e9a0af55a5ee8ad7700e1eba7d97ad78d9296450e781
4a63870e342ef614e3ba2d5e1de3fcc5543504df6e96ecafac00f674a7972ab2"
do_install() {
vmkdir usr/share/sbt
vmkdir usr/bin
vcopy "*" usr/share/sbt
ln -rs ${DESTDIR}/usr/share/sbt/bin/sbt ${DESTDIR}/usr/bin/sbt
vlicense ../LICENSE.txt
rm ${DESTDIR}/usr/share/${pkgname}/bin/*.bat
}