aboutsummaryrefslogblamecommitdiffstats
path: root/testing/chez-scheme/APKBUILD
blob: 33a204cd644517b6fe94b34e33a6b378bddbd43b (plain) (tree)
1
2
3
4
5
6
7
8



                                                 
        

                                         
                                          



                                                                                        


                                  
                             
                                    


                        



                                                                                         


                        



                                            


                     





                                                   
            






                                                                                                                                                             


                                                                                                                                                            
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=chez-scheme
pkgver=9.5.2
pkgrel=1
pkgdesc="Cisco R6RS Scheme Compiler"
url="https://github.com/cisco/ChezScheme"
arch="x86 x86_64" #armv7/aarch64 ports WIP
license="Apache-2.0"
makedepends="util-linux-dev ncurses-dev libx11-dev"
subpackages="$pkgname-doc"
source="https://github.com/cisco/ChezScheme/releases/download/v$pkgver/csv$pkgver.tar.gz
	remove-xlocale.patch
	64bit-ti3le-constant.patch
	64bit-ti3le-equates.patch"
builddir="$srcdir"/csv$pkgver
options="!check" # No defined checks

build() {
	case "$CARCH" in
		x86)     _host=ti3le ;;
		x86_64)  _host=ta6le ;;
		armv7)   _host=i3nt  ;; # void uses arm32le, which is flagged as nonvalid
		aarch64) _host=ta6le ;; # compiler error
	esac

	case "$CARCH" in
		x86)     conf="--threads" ;;
		x86_64)  conf="--threads" ;;
		armv7)   conf=""          ;;
		aarch64) conf="--threads" ;;
	esac

	./configure \
		--installprefix=/usr \
		--temproot=$pkgdir \
		--installschemename="chez" \
		--installscriptname="chez-script" \
		--machine=$_host \
		$conf
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="a2dacb8689b49365a33518522df6e8a964f15ec22945c2949c2593612139bf56a755ad269b6c955ac8fed6d6221c6b861f1b0d41a255e2715817b0024c8b9cef  csv9.5.2.tar.gz
9d324c58cdcf94ccdbf369833d42ab34f7cabb8ee906e54e4f9d98bde45f7cd04e4a040c802407a86d8192a8f8c24f8760f6bba7d6c629dfd428bee80f1b8987  remove-xlocale.patch
859beb7c4276cefc06b49f685560cc4ef69e1b200d7c52d67c5c24e96e1956ce728b2c72015db92347aef02e803cd2c1e377c836e272619414bd5bf0ce521edb  64bit-ti3le-constant.patch
1e97c8713ca8d1a18fc4a46b1ccc39f72969c03c9995d0b54c0b2d1710008e5637e6337cc8e809f97bbcbb6c96144f33f9a6cfdd8ebfd2e4dc196e00640a0f08  64bit-ti3le-equates.patch"