projects/aports·blob master · refs

44 lines · 1.6 KiB

1# Contributor: Sergei Lukin <[email protected]>
2# Contributor: Sören Tempel <[email protected]>
3# Maintainer: Sören Tempel <[email protected]>
4pkgname=chicken-bootstrap
5pkgver=6.0.0
6pkgrel=0
7pkgdesc="Chicken version bootstrapped from pre-compiled C sources"
8url="https://call-cc.org/"
9arch="all"
10license="BSD-3-Clause"
11depends="gcc libc-dev"
12source="https://code.call-cc.org/releases/$pkgver/chicken-$pkgver.tar.gz"
13options="!check" # we run those on community/chicken
14builddir="$srcdir/chicken-$pkgver"
15
16# CHICKEN itself is written in CHICKEN. In order to bootstrap the compiler
17# upstream provides release tarballs which include pre-compiled C files.
18# However, occasionally we need to backport patches from upstream that
19# modify the original Scheme (case in point CVE-2022-45145). In this
20# case, we need to be able to compile CHICKEN from scratch without
21# relying on the pre-compiled C files. For this reason, we package
22# chicken-bootstrap (compiled from the pre-compiled C files) and chicken
23# (which is potentially patched and is compiled from the Scheme sources).
24
25build() {
26 ./configure \
27 --platform linux \
28 --prefix /usr \
29 --program-suffix -bootstrap
30 make
31}
32
33package() {
34 # chicken does not support parallel installs.
35 make -j1 DESTDIR="$pkgdir" install
36
37 # Remove files that we don't need in a bootstrap package.
38 rm -r "$pkgdir"/usr/share/$pkgname \
39 "$pkgdir"/usr/share/man
40}
41
42sha512sums="
43781eb458beb0242707b6460a187d6a06178aa19d2062014d753c02be1d9e6f0486d3295ea4f4464179a4bf273e9b6512f03564901670efcf3baa4f269f28c3e7 chicken-6.0.0.tar.gz
44"