aboutsummaryrefslogtreecommitdiffstats
path: root/testing/chez-scheme/APKBUILD
blob: b9154e0a52ed38af4e3d9528545a2c0b3e6af16e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=chez-scheme
pkgver=9.5.4
pkgrel=0
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
	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="bc377fc5a7355703193849a21fbcd633f35b56f1f898c747fbddedc63ac979c124d966bdd9ed32366bb466881abdf44e03085af16e9795b10975a72c0d0b6123  csv9.5.4.tar.gz
859beb7c4276cefc06b49f685560cc4ef69e1b200d7c52d67c5c24e96e1956ce728b2c72015db92347aef02e803cd2c1e377c836e272619414bd5bf0ce521edb  64bit-ti3le-constant.patch
1e97c8713ca8d1a18fc4a46b1ccc39f72969c03c9995d0b54c0b2d1710008e5637e6337cc8e809f97bbcbb6c96144f33f9a6cfdd8ebfd2e4dc196e00640a0f08  64bit-ti3le-equates.patch"