From d44e81a4715adac4081beb60c1d569be570f6bc3 Mon Sep 17 00:00:00 2001 From: Damian Czaja Date: Sat, 11 Aug 2018 14:36:41 +0200 Subject: [PATCH] New package: sbt-1.2.3 closes #1659 --- srcpkgs/sbt/template | 26 ++++++++++++++++++++++++++ srcpkgs/sbt/update | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 srcpkgs/sbt/template create mode 100644 srcpkgs/sbt/update diff --git a/srcpkgs/sbt/template b/srcpkgs/sbt/template new file mode 100644 index 0000000000..cb880ee1f4 --- /dev/null +++ b/srcpkgs/sbt/template @@ -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 " +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 +} + diff --git a/srcpkgs/sbt/update b/srcpkgs/sbt/update new file mode 100644 index 0000000000..7ee62a2639 --- /dev/null +++ b/srcpkgs/sbt/update @@ -0,0 +1,2 @@ +site="https://www.scala-sbt.org/download.html" +pattern='href=".*/sbt-\K[\d\.]+(?=.tgz")'