pkgname=ccl version=1.11.5 revision=2 wrksrc="ccl" only_for_archs="i686 i686-musl x86_64 x86_64-musl" build_style=gnu-makefile hostmakedepends="m4" short_desc="Clozure Common Lisp interpreter and compiler" maintainer="Ankur Kothari " license="Apache-2.0" homepage="http://ccl.clozure.com/" distfiles="https://github.com/Clozure/ccl/releases/download/v${version}/${pkgname}-${version}-linuxx86.tar.gz" checksum=b80850d8d6ca8662499975f1cd76bf51affdd29e2025796ddcff6576fe704143 nopie=1 nostrip=1 disable_parallel_build=1 case $XBPS_MACHINE in x86_64*) _arch=64 ;; i686*) broken="Build hangs forever" ;; *) _arch='' ;; esac do_build() { # recompile kernel, mandatory for musl cd "lisp-kernel/linuxx86${_arch:-32}" make cd ../.. ./lx86cl$_arch -n -Q -b -e '(ccl:rebuild-ccl :full t)' -e '(ccl:quit)' } do_install() { find . -type d -name .svn -exec rm -rf '{}' + find . -name '*.o' -delete find . -name '*.*fsl' -delete vmkdir usr/lib/$pkgname vcopy lx86cl$_arch usr/lib/$pkgname vcopy lx86cl$_arch.image usr/lib/$pkgname cat > exe.sh <