blob: 29fe6a43d516ad7b12ce092591ad424547bcf9ad (
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
35
36
37
38
39
40
|
# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=sbt
pkgver=0.13.13
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"
depends="openjdk8-jre bash"
source="https://dl.bintray.com/$pkgname/native-packages/$pkgname/$pkgver/$pkgname-$pkgver.tgz
global-sbtopts.patch"
builddir="$srcdir/$pkgname-launcher-packaging-$pkgver"
_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
}
md5sums="30a238d1b0cc2821da2b9b4e830ef204 sbt-0.13.13.tgz
5444222ab18abc16542a008a56c03f7e global-sbtopts.patch"
sha256sums="40d03d21a260c5a6a43f8349298f41c9d047f97972057d9d915afd8945faf979 sbt-0.13.13.tgz
a4e413f3b39ed6a51e266c3ab17b3ecee803ed1013ddedcf1acf2f4fdc56ac2a global-sbtopts.patch"
sha512sums="f9733a4705bc04479711f522f5483a712791403a1445967945a8ec1613d49a95f7de49599b44294e7df09a1d2415225ff57895fb2005bfea94a56d3229e2eacf sbt-0.13.13.tgz
a7f4eedf389024d6c10a523a3456f57dd901b43b9234e12e35c4131a13a95ceac9fe3614b0266193f8700712c26ca45554444d9dd2433ed79069ae2b5ee1d58e global-sbtopts.patch"
|