void-packages/srcpkgs/chicken/template

44 lines
1.2 KiB
Bash

# Template file for 'chicken'
pkgname=chicken
version=5.0.0
revision=1
short_desc="A practical and portable Scheme system"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://www.call-cc.org"
distfiles="http://code.call-cc.org/releases/$version/$pkgname-$version.tar.gz"
checksum=a8b94bb94c5d6a4348cedd75dc334ac80924bcd9a7a7a3d6af5121e57ef66595
# No ARM support??!!!
only_for_archs="i686 i686-musl x86_64 x86_64-musl ppc64le ppc64le-musl"
do_configure() {
make -B -f Makefile.linux chicken-defaults.h PREFIX=/usr
}
do_build() {
make -j1 C_COMPILER_OPTIMIZATION_OPTIONS="$CFLAGS" \
LINKER_LINK_SHARED_PROGRAM_OPTIONS="$LDFLAGS" \
PREFIX=/usr PLATFORM=linux
}
do_install() {
make -j1 C_COMPILER_OPTIMIZATION_OPTIONS="$CFLAGS" \
LINKER_LINK_SHARED_PROGRAM_OPTIONS="$LDFLAGS" \
PREFIX=/usr DESTDIR=$DESTDIR PLATFORM=linux install
vlicense LICENSE
}
libchicken_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
chicken-devel_package() {
depends="libchicken>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}