void-packages/srcpkgs/Gauche/template

36 lines
992 B
Bash

# Template file for 'Gauche'
pkgname=Gauche
version=0.9.15
revision=1
build_style=gnu-configure
hostmakedepends="texinfo"
makedepends="libticonv-devel libatomic_ops-devel"
checkdepends="iana-etc"
short_desc="Practical Scheme R7RS implementation"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://practical-scheme.net/gauche/"
distfiles="https://github.com/shirok/Gauche/releases/download/release${version//\./_}/Gauche-${version}.tgz"
checksum=3643e27bc7c8822cfd6fb2892db185f658e8e364938bc2ccfcedb239e35af783
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
# consistency.
ln -sf gosh $DESTDIR/usr/bin/gauche
vlicense COPYING
}