blob: f2960db8333e60e4b8d4e4c7ea114ced783113d3 (
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.5
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="bb538d88ec5ee7bb08b5eed6e7e250c45ee25419952473e4f093391316f936b26cc181f21c7b3501b9126a5c1f21b10514adffea4f9a09f7920203ba6330c2d4 sbt-1.1.5.tgz"
|