blob: d2360850297be80c03f735d6ab72c10a9a9137b8 (
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
62
63
64
65
66
67
68
69
70
71
|
# 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=5.1.0
pkgrel=0
pkgdesc="R5RS and R7RS compatible scheme compiler and interpreter"
url="https://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="https://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
case "$CARCH" in
armhf|armv7) options="!check" ;; # FIXME
esac
# secfixes:
# 4.12.0-r3:
# - CVE-2017-6949
# 4.12.0-r2:
# - CVE-2017-9334
# 4.11.1-r0:
# - CVE-2016-6830
# - CVE-2016-6831
build() {
# chicken does not support parallel builds.
make -j1 PLATFORM=linux PREFIX=/usr \
-C "$builddir"
}
check() {
make -j1 PLATFORM=linux \
-C "$builddir" check
}
package() {
# chicken does not support parallel installs.
make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" \
-C "$builddir" install
# Move documentation to /usr/share/doc.
mkdir -p "$pkgdir"/usr/share/doc/
mv "$pkgdir"/usr/share/$pkgname/doc \
"$pkgdir"/usr/share/doc/$pkgname
# 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/
}
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/
mv "$pkgdir"/usr/share/chicken/feathers.tcl \
"$subpkgdir"/usr/share/chicken/
}
sha512sums="56bfe918e4c4069f15f845350bf334df7580f3b6e53c1edc4abbeafdb57cfc86cb6ce426c9b9e739ca415e830e538a76b27de16ec04643eae8d45ea82c9ed3f3 chicken-5.1.0.tar.gz"
|