void-packages/srcpkgs/chicken/template

44 lines
1.1 KiB
Bash

# Template file for 'chicken'
pkgname=chicken
version=4.9.0.1
revision=4
short_desc="A practical and portable Scheme system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD"
homepage="http://www.call-cc.org"
distfiles="http://code.call-cc.org/releases/${version%.*}/$pkgname-$version.tar.gz"
checksum=04df7c439c36fc16446bdfa186e7a70258f911d2d826b5216a8e6b1cb2aa2815
# No ARM support??!!!
only_for_archs="i686 i686-musl x86_64 x86_64-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"
}
}