void-packages/srcpkgs/Gauche/template

36 lines
982 B
Bash

# Template file for 'Gauche'
pkgname=Gauche
version=0.9.12
revision=3
build_style=gnu-configure
hostmakedepends="texinfo"
makedepends="libticonv-devel libatomic_ops-devel"
checkdepends="iana-etc"
short_desc="Practical Scheme R7RS implementation"
maintainer="rc-05 <rc23@email.it>"
license="BSD-3-Clause"
homepage="https://practical-scheme.net/gauche/"
distfiles="https://github.com/shirok/Gauche/releases/download/release${version//\./_}/Gauche-${version}.tgz"
checksum=b4ae64921b07a96661695ebd5aac0dec813d1a68e546a61609113d7843f5b617
alternatives="
scheme:scheme:/usr/bin/gosh
scheme:scheme.1:/usr/share/man/man1/gosh.1
"
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
if [ -n "$CROSS_BUILD" ]; then
# Gauche needs itself to bootstrap for cross compilation.
hostmakedepends+=" Gauche"
fi
post_install() {
# Void previously shipped the binary as "gauche", symlink for
# consistancy.
ln -sf gosh $DESTDIR/usr/bin/gauche
vlicense COPYING
}