1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
4 pkgname=(rubinius rubinius-ruby)
7 pkgdesc="Ruby runtime written in Ruby, designed for concurrency"
9 url="https://rubinius.com"
10 license=(custom:BSD MPL2)
11 depends=(libffi openssl-1.0 libyaml)
12 makedepends=(llvm ruby ruby-rake clang valgrind)
14 source=(http://releases.rubinius.com/${pkgbase}-${pkgver}.tar.bz2
16 sha256sums=('46d68cb26ce83fb503b25776770abad6a55ef03a14cd4fd05f44e17becb71589'
17 '4bb7eb2fe66e396ed16b589cdb656831407b39ad4e138d88536754c0448ac614'
18 '01eaefc509d3192ade1115282b42e06a72b0ab9353b61d1779db296bb832e2f2')
22 patch -Np1 -i ../dirs.patch
26 export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
31 --mandir=/usr/share/man \
32 --includedir=/usr/include/rubinius \
33 --appdir=/usr/lib/rubinius \
34 --gemsdir=/usr/lib/rubinius/gems \
49 export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
52 DESTDIR="$pkgdir" rake install:files
53 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE BSD_LICENSE
55 ### Split rubinius-ruby
56 mkdir -p "$srcdir/ruby/usr/bin"
57 for _f in "$pkgdir"/usr/bin/*; do
58 [[ $_f == */rbx ]] && continue
59 mv $_f "$srcdir/ruby/usr/bin"
63 package_rubinius-ruby() {
64 pkgdesc="Ruby compat for Rubinius"
65 depends=("rubinius=$pkgver-$pkgrel")
71 install -Dt "$pkgdir/etc" -m644 gemrc
73 mkdir -p "$pkgdir/usr/share/licenses"
74 ln -s rubinius "$pkgdir/usr/share/licenses/$pkgname"