updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / scala2.7 / PKGBUILD
blob51c24862861aeb2899b5b4659677dc0fa0aac242
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>
5 pkgname=scala2.7
6 pkgver=2.7.7
7 pkgrel=1
8 pkgdesc="Old version of a Java-interoperable language with object-oriented and functional features"
9 arch=('any')
10 url="http://www.scala-lang.org"
11 license=('GPL')
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')
17 build(){
18     cd ${srcdir}/scala-${pkgver}.final-sources
19     ant build || return 1
20     ant docs || return 1
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