upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / rubinius / trunk / PKGBUILD
blobbe92ef41f0d018250f7aef4c689f09926cec8579
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 pkgbase=rubinius
4 pkgname=(rubinius rubinius-ruby)
5 pkgver=3.107
6 pkgrel=1
7 pkgdesc="Ruby runtime written in Ruby, designed for concurrency"
8 arch=(x86_64)
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)
13 options=(!emptydirs)
14 source=(http://releases.rubinius.com/${pkgbase}-${pkgver}.tar.bz2
15         gemrc dirs.patch)
16 sha256sums=('46d68cb26ce83fb503b25776770abad6a55ef03a14cd4fd05f44e17becb71589'
17             '4bb7eb2fe66e396ed16b589cdb656831407b39ad4e138d88536754c0448ac614'
18             '01eaefc509d3192ade1115282b42e06a72b0ab9353b61d1779db296bb832e2f2')
20 prepare() {
21   cd $pkgbase-$pkgver
22   patch -Np1 -i ../dirs.patch
25 build() {
26   export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
28   cd $pkgbase-$pkgver
29   ./configure \
30     --prefix=/usr \
31     --mandir=/usr/share/man \
32     --includedir=/usr/include/rubinius \
33     --appdir=/usr/lib/rubinius \
34     --gemsdir=/usr/lib/rubinius/gems \
35     --bin-link bundle \
36     --bin-link bundler \
37     --preserve-prefix \
38     --without-rpath \
39     --release-build
40   rake build
43 check() {
44   cd $pkgbase-$pkgver
45   rake vm:test
48 package_rubinius() {
49   export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
51   cd $pkgbase-$pkgver
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"
60   done
63 package_rubinius-ruby() {
64   pkgdesc="Ruby compat for Rubinius"
65   depends=("rubinius=$pkgver-$pkgrel")
66   provides=(ruby)
67   conflicts=(ruby)
68   backup=(etc/gemrc)
70   mv ruby/* "$pkgdir"
71   install -Dt "$pkgdir/etc" -m644 gemrc
73   mkdir -p "$pkgdir/usr/share/licenses"
74   ln -s rubinius "$pkgdir/usr/share/licenses/$pkgname"