aboutsummaryrefslogtreecommitdiffstats
path: root/community/mruby/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-12-26 10:55:40 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-12-26 11:19:05 +0100
commite5cae5ab1e394e094ec2abc24686e0519bd2ab8f (patch)
treea68fc650d42a6986b9521c47ff87cd54aa45c2a5 /community/mruby/APKBUILD
parente9a436fb95b3787a2b8cb6fdf372d819ebc57b89 (diff)
downloadaports-e5cae5ab1e394e094ec2abc24686e0519bd2ab8f.tar.bz2
aports-e5cae5ab1e394e094ec2abc24686e0519bd2ab8f.tar.xz
community/mruby: modernize abuild
Diffstat (limited to 'community/mruby/APKBUILD')
-rw-r--r--community/mruby/APKBUILD9
1 files changed, 3 insertions, 6 deletions
diff --git a/community/mruby/APKBUILD b/community/mruby/APKBUILD
index 8abc65acb9..1771c82a5a 100644
--- a/community/mruby/APKBUILD
+++ b/community/mruby/APKBUILD
@@ -10,21 +10,18 @@ license="MIT"
depends=""
makedepends="$depends_dev bison ruby"
subpackages="$pkgname-tools $pkgname-static $pkgname-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/mruby/mruby/archive/$pkgver.tar.gz
+source="https://github.com/mruby/mruby/archive/$pkgver/$pkgname-$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
+ cp build/host-debug/bin/* "$pkgdir"/usr/bin/
+ cp build/host/bin/* "$pkgdir"/usr/bin/
install -d "$pkgdir"/usr/lib
cp build/host/lib/*.a "$pkgdir"/usr/lib/