aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sbt/APKBUILD
blob: 04acc24e4ea637301b9bc317c1fc1c806f532dd6 (plain) (blame)
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.0
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 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="405c76991fb9940e7240194d778ccdff0a85690e9066a0f0c11b28e42f16d3d6ee1d63a2f6641d908c955c510f0a9c0975ed157c5fd22a07f1c132b1d272c95d  sbt-1.1.0.tgz"