blob: 9e208e08c733b0b08b335fff74cf127e42e48f4e (
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
|
pkgname=mruby-git
pkgrel=1
pkgver=1.0.0.r5216.g14c21793
pkgdesc='Lightweight Ruby'
arch=(i686 x86_64)
license=(MIT)
depends=(readline)
makedepends=(git bison ruby)
conflicts=(mruby)
replaces=(mruby)
provides=(mruby)
url='https://github.com/mruby/mruby'
options=(staticlibs)
source=(git+https://github.com/mruby/mruby)
sha1sums=('SKIP')
pkgver() {
cd mruby
git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd mruby
make
}
check() {
cd mruby
make test
}
package() {
cd mruby
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib" "$pkgdir/usr/share/licenses/mruby"
cp build/host/bin/* "$pkgdir/usr/bin"
cp build/host/lib/*.a "$pkgdir/usr/lib"
cp -r include "$pkgdir/usr"
cp MITL "$pkgdir/usr/share/licenses/mruby/LICENSE"
}
|