# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description Simple build tool (sbt) simplifies building Scala projects
Simple build tool (sbt) is provides unintrusive and easy to set up \
for simple Scala projects. All configuration, customization, and \
extension are done in Scala. Sbt supports continuous compilation \
and testing with triggered execution in mixed Scala/Java projects.
homepage https://www.scala-sbt.org/
master_sites https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${version}
dist_subdir ${name}/${version}
checksums md5 c660658ea9b1300d31aaa713f214b1b4 \
sha1 db44e7b60ed5c82ea00315ad223e3a8cc3d086e5 \
rmd160 a61cd251a1593dafa0d1452dbb615b4fb1fd5a19 \
sha256 add170a6e07d3ecf2a5add54565a0b5f729524083f0b05f9e1d4df90adb9257b \
# Name the wrapper shell script.
file copy ${filespath}/${wrapper} ${worksrcpath}
set jarname ${distname}${extract.suffix}
reinplace "s|__SBT_LAUNCHER_PATH__|${prefix}/share/${name}/${jarname}|g" \
${worksrcpath}/${wrapper}
set sbtdir ${destroot}${prefix}/share/${name}
xinstall -m 755 -d ${sbtdir}
xinstall -m 644 ${distpath}/${jarname} ${sbtdir}/
xinstall -m 755 ${worksrcpath}/${wrapper} ${sbtdir}/${name}
ln -s ${prefix}/share/${name}/${name} ${destroot}${prefix}/bin
livecheck.url https://dl.bintray.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/
livecheck.regex {>([0-9.]+)/<}