mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 17:01:34 +02:00
This makes it possible to provide armv7 as additional architecture in Alpine, next to armhf. See the discussion in this ML thread: <https://lists.alpinelinux.org/alpine-devel/6271.html> It's done by adding armv7 next to armhf in the arch line and also !armv7 where the arch line said !armhf. The following script was used:
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=mruby
|
|
pkgver=1.4.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="2cbf155ba7819211b6410ea606c4d0db3adf4f47a4018ac45285ab3e32b94f280aa0af0936ead7233411957cfca62979d14bbaaf0d8f40521cba5c12272f2af4 mruby-1.4.1.tar.gz
|
|
9c51108d9766e3e3129ac89d76fc7dcc797b206bcc5660d60e89426adb93707fcf5acdffb24cd3438b3eabfcc02e3767a17e9233c25e0762ebe2ddab9f159252 build_config.rb"
|