chibi-scheme: fix cross

This commit is contained in:
Michal Vasilek 2022-01-29 18:11:01 +01:00 committed by paper
parent ba3577937d
commit bfbc086f23

View file

@ -2,6 +2,7 @@
pkgname=chibi-scheme
version=0.10
revision=1
build_helper="qemu"
build_style=gnu-makefile
make_build_args="PREFIX=/usr"
short_desc="Small Footprint R7RS Scheme for use as a C Extension Language"
@ -15,7 +16,12 @@ alternatives="
scheme:scheme.1:/usr/share/man/man1/chibi-scheme.1
"
disable_parallel_build=yes
nocross=yes
pre_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -e "s/CHIBI_MODULE_PATH=lib \.\/chibi-scheme/CHIBI_MODULE_PATH=lib qemu-${XBPS_TARGET_QEMU_MACHINE}-static .\/chibi-scheme/" -i Makefile
fi
}
post_install() {
vlicense COPYING