void-packages/srcpkgs/racket/template

49 lines
1.0 KiB
Bash

# Template file for 'racket'
pkgname=racket
version=7.0
revision=1
build_style=gnu-configure
build_wrksrc=src
hostmakedepends="gsfonts"
makedepends="sqlite-devel gtk+-devel"
depends="gtk+"
short_desc="A programmable programming language"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="LGPL-3"
homepage="http://racket-lang.org/"
distfiles="http://mirror.racket-lang.org/installers/$version/$pkgname-$version-src.tgz"
checksum=2a4960292379da84c8356a506fc0567ece54211c267bd20022b7a7abab2a9bbe
nostrip=yes
if [ "$CROSS_BUILD" ]; then
configure_args+=" --enable-racket=/usr/bin/racket"
hostmakedepends+=" racket sqlite-devel"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" libucontext-devel";;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
export CFLAGS+=" -D_GNU_SOURCE"
export LIBS+=" -lucontext"
;;
esac
}
post_install() {
vlicense COPYING-libscheme.txt
}
racket-doc_package() {
noarch=yes
short_desc+=" -- documentation"
depends="racket>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc/racket
}
}