upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / jruby / trunk / PKGBUILD
blob79215c8061c28120241e115429a33ff4f7a09c8d
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: FaziBear <fazibear@gmail.com>
4 pkgname=jruby
5 pkgver=9.4.2.0
6 pkgrel=1
7 pkgdesc="100% pure-Java implementation of the Ruby programming language"
8 url="https://www.jruby.org/"
9 arch=(any)
10 license=(EPL GPL2 LGPL2.1 custom)
11 options=(!strip)
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')
17 prepare() {
18   cd jruby-$pkgver
19   rm -rv bin/*.{bat,dll,exe} lib/jni/{Darwin,*-SunOS,*-Windows,*-AIX,*-*BSD}
20   chmod -cR g-w .
23 package() {
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