Package Details: gerbil-scheme 0.18.1-2

Git Clone URL: https://aur.archlinux.org/gerbil-scheme.git (read-only, click to copy)
Package Base: gerbil-scheme
Description: Opinionated dialect of Scheme designed for systems programming, on the Gambit runtime.
Upstream URL: https://github.com/mighty-gerbils/gerbil
Licenses: Apache 2.0, LGPLv2.1
Conflicts: gerbil-scheme-git
Submitter: necaris
Maintainer: necaris (cvnb)
Last Packager: cvnb
Votes: 5
Popularity: 0.017403
First Submitted: 2021-11-15 15:35 (UTC)
Last Updated: 2024-03-08 09:16 (UTC)

Latest Comments

cvnb commented on 2023-10-20 23:17 (UTC)

No worries. I'm glad we were able to get the PKGBUILD updated.

necaris commented on 2023-10-19 13:43 (UTC)

Thank you @cvnb and sorry for the delay in updating. I've updated to your PKGBUILD and added you as a co-maintainer as well for future updates.

cvnb commented on 2023-10-14 02:38 (UTC)

@necaris, gerbil-scheme have a new release v0.18 released yesterday.

Note there are significant changes from the last release. gambit-scheme is not a dependency anymore. Upstream uses a pinned gambit-scheme version that is compiled as a library and used.

If it helps, please consider the below PKGBUILD that should be able to build v0.18

pkgname=gerbil-scheme
_pkgname=gerbil
pkgver=0.18
pkgrel=1
pkgdesc="Opinionated dialect of Scheme designed for systems programming, on the Gambit runtime."
arch=(x86_64 i686)
url="https://github.com/mighty-gerbils/gerbil"
license=('LGPLv2.1' 'Apache 2.0')
depends=('openssl' 'zlib' 'sqlite')
conflicts=('gerbil-scheme-git')
source=("git+$url#tag=v$pkgver")
sha512sums=('SKIP')

build() {
    cd "$_pkgname"

    echo "Configuring..."
    ./configure --prefix="/opt/gerbil"

    echo "Building..."
    make
}

package() {
    echo "Packaging..."

    cd "$_pkgname"
    make DESTDIR=${pkgdir} install

    mkdir -p ${pkgdir}/etc/profile.d/
    cat <<'EOF' > ${pkgdir}/etc/profile.d/gerbil-scheme.sh
export PATH=/opt/gerbil/bin:$PATH
EOF
}
Changes to PKGBUILD
- Updated upstream URL to be github.com/mighty-gerbils/gerbil
- Change source to pull by git tag; removed install.patch as it is not needed any more
- Removed optdepends, pkg_installed() and _enabled_features as these have been moved out into separate libraries.
- Updated source to pull by tag
- Removed GERBIL_BUILD_CORES as ./configure determines this from make -jX as setup in /etc/makepkg.conf
- Removed GERBIL_GSC and GERBIL_HOME as upstream does not require them to be setup anymore.
- Updated package paths to match upstream's defaults
- Quoted EOF in the here-document to not to have $PATH expanded during packaging; unescaped $PATH

necaris commented on 2022-01-21 00:54 (UTC)

Note that for me, gambit-c==4.9.4 does not supply gsi, which is necessary for Gerbil to work, so this only works for me with gambit-c==4.9.3.

necaris commented on 2021-11-25 16:12 (UTC)

@segment289 thank you! Fixed and pushed!

segment289 commented on 2021-11-25 12:43 (UTC) (edited on 2021-11-25 12:44 (UTC) by segment289)

Your timing couldn't have been better. Thank you. :-) But /etc/profile.d/gerbil-scheme.sh doesn't come out quite right. From PKGBUILD:

    cat <<EOF >${pkgdir}/etc/profile.d/gerbil-scheme.sh
#!/bin/bash
export GERBIL_GSC=/usr/bin/gambitc
export GERBIL_HOME=/opt/gerbil-scheme
export PATH=/opt/gerbil-scheme/bin:$PATH
EOF

The problem is that whatever I happened to have in my personal $PATH when I ran makepgk ends up in /etc/profile.d/gerbil-scheme.sh; I think you want to quote $PATH:

export PATH=/opt/gerbil-scheme/bin:\$PATH