blob: 272427cfb8675113ce4560601879a0c330e6a0a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Ed Robinson <edward-robinson@cookpad.com>
# Maintainer: Ed Robinson <edward-robinson@cookpad.com>
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"
|