aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sbt/APKBUILD
blob: f1610e41cac7bd666ad417d5770efce757b5011e (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.2.8
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="e12d50de4481dc599b8e129b5caf86b4a6a42426612308f9c8dd791525b5ae325e65f1c1db479bdc00fed2421c108a0dcdd00585f90334446e2cef914484719a  sbt-1.2.8.tgz"