gdritter repos void-extra-packages / 784d707
sbt template Getty Ritter 9 years ago
1 changed file(s) with 38 addition(s) and 0 deletion(s). Collapse all Expand all
1 # Template file for 'sbt'
2 pkgname=sbt
3 version=0.13.9
4 revision=1
5 #wrksrc=
6 create_wrksrc=yes
7 #configure_args=""
8 #make_build_args=""
9 #make_install_args=""
10 #conf_files=""
11 #make_dirs="/var/log/dir 0755 root root"
12 hostmakedepends=""
13 makedepends=""
14 depends=""
15 short_desc="A minimal build tool for Scala projects"
16 maintainer="Getty Ritter <gdritter@galois.com>"
17 license="BSD"
18 homepage="http://www.scala-sbt.org/"
19 distfiles="https://dl.bintray.com/${pkgname}/native-packages/${pkgname}/${version}/${pkgname}-${version}.tgz"
20 checksum=148f2801f2993773de6f8859fe0e6520fcabe649d66bb316e13aff8b2fd7f504
21
22 do_build() {
23 return 0
24 }
25
26 do_install() {
27 install -d ${DESTDIR}/usr/share
28 cp -r ${wrksrc}/sbt ${DESTDIR}/usr/share
29 rm ${DESTDIR}/usr/share/${pkgname}/bin/sbt.bat
30 rm ${DESTDIR}/usr/share/${pkgname}/conf/sbtconfig.txt
31 find ${DESTDIR}/usr/share/${pkgname} -type f ! -name sbt -exec chmod -x {} \;
32
33 install -d ${DESTDIR}/usr/bin
34 ln -s /usr/share/${pkgname}/bin/sbt ${DESTDIR}/usr/bin/sbt
35
36 install -d ${DESTDIR}/etc/${pkgname}
37 ln -s /usr/share/${pkgname}/conf/sbtopts ${DESTDIR}/etc/${pkgname}/sbtopts
38 }