1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: FaziBear <fazibear@gmail.com>
7 pkgdesc="100% pure-Java implementation of the Ruby programming language"
8 url="https://www.jruby.org/"
10 license=(EPL GPL2 LGPL2.1 custom)
12 source=(https://repo1.maven.org/maven2/org/jruby/jruby-dist/$pkgver/jruby-dist-$pkgver-bin.tar.gz)
13 md5sums=('486e50f3c74e7400e71631819fde91da')
14 sha1sums=('c338c1d3846e51b651e31e248097fdee4920056a')
15 sha256sums=('c2b065c5546d398343f86ddea68892bb4a4b4345e6c8875e964a97377733c3f1')
19 rm -rv bin/*.{bat,dll,exe} lib/jni/{Darwin,*-SunOS,*-Windows,*-AIX,*-*BSD}
24 depends=(java-runtime-headless bash)
26 mkdir -p "$pkgdir"/{opt,usr/bin,usr/share/licenses/$pkgname}
27 cp -a jruby-$pkgver "$pkgdir/opt/jruby"
28 ln -srt "$pkgdir/usr/bin" \
29 "$pkgdir"/opt/jruby/bin/j{irb,irb_swing,gem,ruby,rubyc}
30 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 jruby-$pkgver/COPYING