aboutsummaryrefslogtreecommitdiffstats
path: root/testing/chicken/APKBUILD
blob: b4fcaaa46ea83b7180087e0f52215d944dbb5241 (plain)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=chicken
pkgver=4.10.0
pkgrel=1
pkgdesc="R5RS and R7RS compatible scheme compiler and interpreter"
url="http://call-cc.org/"
arch="all"
license="custom"
depends="gcc libc-dev $pkgname-dev $pkgname-libs"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc $pkgname-libs $pkgname-dev"
source="http://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	# chicken does not support parallel builds.
	make -j1 PLATFORM=linux PREFIX=/usr \
		-C "$_builddir" || return 1
}

package() {
	# chicken does not support parallel installs.
	make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" \
		-C "$_builddir" install || return 1

	# Move documentation to /usr/share/doc.
	mkdir -p "$pkgdir"/usr/share/doc/
	mv "$pkgdir"/usr/share/$pkgname/doc "$pkgdir"/usr/share/doc/$pkgname || return 1

	# Move license to /usr/share/licenses
	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
	mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/ || return 1
}

md5sums="5585edb369eb2a49f1f92775419852e7  chicken-4.10.0.tar.gz"
sha256sums="0e07f5abcd11961986950dbeaa5a40db415f8a1b65daff9c300e9b05b334899b  chicken-4.10.0.tar.gz"
sha512sums="ff3405652e232ba7b06a8d4fc092772259f0917b1cdd119c0cf38f27ba95fca99d2c053c0f08317014fd7085e8cf89f68b56f22cb82c2988914b972ce59e3e29  chicken-4.10.0.tar.gz"