1 # Maintainer: Hoang Duc Hieu <hdh @ lazny.tang.la>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Marcin Karpezo <sirmacik at gmail dot com>
8 pkgdesc="Old version of a Java-interoperable language with object-oriented and functional features"
10 url="http://www.scala-lang.org"
12 depends=('java-runtime')
13 makedepends=('apache-ant' 'util-linux-ng')
14 source=(http://www.scala-lang.org/downloads/distrib/files/scala-${pkgver}.final-sources.tgz)
15 md5sums=('3692a6ac7523b21302901a24016a3f4c')
18 cd ${srcdir}/scala-${pkgver}.final-sources
21 # ant pack || return 1
23 install -d ${pkgdir}/usr/{bin,share} ${pkgdir}/usr/share/man/man1 ${pkgdir}/usr/share/${pkgname}/{bin,lib} || return 1
25 install -D -m0644 docs/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
26 mv build/pack/lib ${pkgdir}/usr/share/${pkgname}/ || return 1
27 install -m 755 build/pack/bin/{fsc,scala,scalac,scaladoc} ${pkgdir}/usr/share/${pkgname}/bin || return 1
28 install -m 644 build/scaladoc/manual/man/man1/{fsc,sbaz,scala,scalac,scaladoc}.1 ${pkgdir}/usr/share/man/man1 || return 1
29 rename .1 2.7.1 ${pkgdir}/usr/share/man/man1/* || return 1 # avoid conflict with scala
31 ln -s ../share/${pkgname}/bin/fsc ${pkgdir}/usr/bin/fsc2.7
32 ln -s ../share/${pkgname}/bin/scala ${pkgdir}/usr/bin/${pkgname}
33 ln -s ../share/${pkgname}/bin/scalac ${pkgdir}/usr/bin/scalac2.7
34 ln -s ../share/${pkgname}/bin/scaladoc ${pkgdir}/usr/bin/scaladoc2.7