| 1 | # Contributor: Sergei Lukin <[email protected]> |
| 2 | # Contributor: Sören Tempel <[email protected]> |
| 3 | # Maintainer: Sören Tempel <[email protected]> |
| 4 | pkgname=chicken-bootstrap |
| 5 | pkgver=6.0.0 |
| 6 | pkgrel=0 |
| 7 | pkgdesc="Chicken version bootstrapped from pre-compiled C sources" |
| 8 | url="https://call-cc.org/" |
| 9 | arch="all" |
| 10 | license="BSD-3-Clause" |
| 11 | depends="gcc libc-dev" |
| 12 | source="https://code.call-cc.org/releases/$pkgver/chicken-$pkgver.tar.gz" |
| 13 | options="!check" # we run those on community/chicken |
| 14 | builddir="$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 | |
| 25 | build() { |
| 26 | ./configure \ |
| 27 | --platform linux \ |
| 28 | --prefix /usr \ |
| 29 | --program-suffix -bootstrap |
| 30 | make |
| 31 | } |
| 32 | |
| 33 | package() { |
| 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 | |
| 42 | sha512sums=" |
| 43 | 781eb458beb0242707b6460a187d6a06178aa19d2062014d753c02be1d9e6f0486d3295ea4f4464179a4bf273e9b6512f03564901670efcf3baa4f269f28c3e7 chicken-6.0.0.tar.gz |
| 44 | " |