aboutsummaryrefslogtreecommitdiffstats
path: root/community/chicken/APKBUILD
blob: 6bbb70ecaf268739f0ee3fabc427ceb35c5eac36 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=chicken
pkgver=4.11.1
pkgrel=0
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 $pkgname-feathers::noarch"
#source="http://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz"
source="http://code.call-cc.org/dev-snapshots/2016/09/12/$pkgname-$pkgver.tar.gz"

# secfixes:
#   4.11.1:
#     - CVE-2016-6830
#     - CVE-2016-6831

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
}

feathers() {
	pkgdesc="A debugger for compiled chicken programs"
	depends="tk"

	mkdir -p "$subpkgdir"/usr/bin/ \
		"$subpkgdir"/usr/share/chicken/
	mv "$pkgdir"/usr/bin/feathers \
		"$subpkgdir"/usr/bin/ || return 1
	mv "$pkgdir"/usr/share/chicken/feathers.tcl \
		"$subpkgdir"/usr/share/chicken/ || return 1
}

md5sums="60422395b3559e997266c2f61bf7ac53  chicken-4.11.1.tar.gz"
sha256sums="ea31ea2ebc763cdb7014a50f2767e23da16455393c6d1a7f83be715bd7aa9ee7  chicken-4.11.1.tar.gz"
sha512sums="7ee3f42cbd442b3764d8e8f88ed438889215bcb5be22651ad2dd4d41a57620a7f9284168e9a259769dbf39e527e72e2748727526f03009b7a3dae502f3027117  chicken-4.11.1.tar.gz"