updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / jruby / PKGBUILD
blob07325f448f0b10318c6e18fbd77a48cdc440b237
1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
2 # Contributor: FaziBear <fazibear@gmail.com>
4 pkgname=jruby
5 pkgver=1.6.5.1
6 pkgrel=1
7 pkgdesc="JRuby is 100% pure-Java implementation of the Ruby programming language."
8 arch=(any)
9 url="http://www.jruby.org"
10 license=(CPL GPL2 LGPL2.1 custom)
11 depends=(java-runtime)
12 options=(!strip)
13 source=("http://$pkgname.org.s3.amazonaws.com/downloads/$pkgver/$pkgname-bin-$pkgver.tar.gz")
14 md5sums=('246a7aa2b7d7e6e9e8a0c2e282cbcfd0')
16 if false; then
17 makedepends=(java-environment apache-ant)
18 build() {
19   cd "$srcdir/jruby"
20   ant dist-bin
21   tar -C .. -xf dist/$pkgname-bin-$pkgver.tar.gz
25 package() {
26   cd "$pkgdir"
28   mkdir opt
29   cp -r "$srcdir/jruby-$pkgver" opt/jruby
31   mkdir -p usr/bin
32   for _file in jirb jruby jgem jrubyc; do
33     ln -s /opt/jruby/bin/$_file usr/bin/$_file
34   done
36   install -Dm644 "$srcdir/jruby-$pkgver/COPYING" \
37     usr/share/licenses/$pkgname/COPYING