New package: sbt-1.2.3

closes #1659
This commit is contained in:
Damian Czaja 2018-08-11 14:36:41 +02:00 committed by maxice8
parent 0db2c8bb62
commit d44e81a471
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 28 additions and 0 deletions

26
srcpkgs/sbt/template Normal file
View file

@ -0,0 +1,26 @@
# 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
}

2
srcpkgs/sbt/update Normal file
View file

@ -0,0 +1,2 @@
site="https://www.scala-sbt.org/download.html"
pattern='href=".*/sbt-\K[\d\.]+(?=.tgz")'