Commit 789fd64f authored by Timo Teräs's avatar Timo Teräs

main/ruby: fix packaging on arm

The directory is the host triplet without the vendor part. This
assumes the vendor part is always 'alpine'.
parent f25ef14a
......@@ -120,7 +120,7 @@ _mvgem() {
cd "$pkgdir"
for i in ./$_rubydir/${1}.rb \
./$_rubydir/${1} \
./$_rubydir/$_arch-linux-${CLIBC}/${1} \
./$_rubydir/${CHOST/-alpine-/-}/${1} \
./$_gemdir/gems/${1}-* \
./$_gemdir/specifications/default/${1}-* ; do
[ -e "$pkgdir"/$i ] || continue
......@@ -132,7 +132,7 @@ _rmgem() {
cd "$pkgdir"
for i in ./$_rubydir/${1}.rb \
./$_rubydir/${1} \
./$_rubydir/$_arch-linux-${CLIBC}/${1} \
./$_rubydir/${CHOST/-alpine-/-}/${1} \
./$_gemdir/gems/${1}-* \
./$_gemdir/specifications/default/${1}-* ; do
[ -e "$pkgdir"/$i ] && rm -r "$pkgdir/$i"
......@@ -179,7 +179,7 @@ io_console() {
depends="ruby"
_mvgem io-console
_mv $_rubydir/io \
$_rubydir/$_arch-linux-${CLIBC}/io/console.so
$_rubydir/${CHOST/-alpine-/-}/io/console.so
}
minitest() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment