blob: 8e62a6268e5732928e0b2e5cf5615a9eaf828a3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=mruby
pkgver=2.0.1
pkgrel=0
pkgdesc="Lightweight Ruby"
url="http://mruby.org"
arch="all !armhf !armv7"
license="MIT"
depends=""
makedepends="$depends_dev bison ruby"
subpackages="$pkgname-tools $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/mruby/mruby/archive/$pkgver.tar.gz
build_config.rb"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
MRUBY_CONFIG="$srcdir/build_config.rb" ./minirake --verbose
}
package() {
cd "$builddir"
install -d "$pkgdir"/usr/bin
cp build/host-debug/bin/* "$pkgdir"/usr/bin/ || return 1
cp build/host/bin/* "$pkgdir"/usr/bin/ || return 1
install -d "$pkgdir"/usr/lib
cp build/host/lib/*.a "$pkgdir"/usr/lib/
}
tools() {
pkgdesc="$pkgdesc (tools)"
install -d "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/ \
&& mv "$subpkgdir"/usr/bin/mruby "$pkgdir"/usr/bin/
}
sha512sums="74403f928c5af52c615ee2490b0aa685b4d62238f3da3778b3e44748e523e1916f110b42f2e73729be24d561b89a9ae498ff32f549ebe241e97a70d83cf39ded mruby-2.0.1.tar.gz
9c51108d9766e3e3129ac89d76fc7dcc797b206bcc5660d60e89426adb93707fcf5acdffb24cd3438b3eabfcc02e3767a17e9233c25e0762ebe2ddab9f159252 build_config.rb"
|