# Contributor: Ed Robinson # Maintainer: Ed Robinson pkgname=sbt pkgver=1.1.4 pkgrel=0 pkgdesc="The interactive build tool, sbt is a build tool for Scala, Java, and more." url="http://www.scala-sbt.org/" arch="noarch" license="BSD-3-Clause" options="!check" depends="openjdk8-jre-base bash" source="https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tgz" builddir="$srcdir/$pkgname" _basedir="/usr/share/java/$pkgname" package() { local destdir="$pkgdir/$_basedir" local confdir="$pkgdir/etc/$pkgname" cd "$builddir" install -dm755 "$destdir"/bin || return 1 install -m755 -t "$destdir"/bin bin/* || return 1 install -dm755 "$confdir" || return 1 install -m644 -t "$confdir" conf/* || return 1 mkdir -p "$pkgdir"/usr/bin ln -s "$_basedir/bin/sbt" "$pkgdir/usr/bin/sbt" || return 1 # Remove windows specific files rm $destdir/bin/sbt.bat rm $confdir/sbtconfig.txt } sha512sums="7b278ecd22d4778482c61ec2e9650c8dd199c341aaaa624fee6b7f8989203de3d4dac24c4181ee08f0da50c69901321a1e11a535f0911241c9f6bfdfab5e94b8 sbt-1.1.4.tgz"