void-packages/srcpkgs/sbt/template

27 lines
830 B
Bash
Raw Normal View History

2018-08-11 12:36:41 +00:00
# Template file for 'sbt'
pkgname=sbt
version=1.2.3
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="d502fbe587a6c2181d6acc688741ae4131386bb10ca50c73c923effc60bafeeb
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
}