void-packages/srcpkgs/chicken/template
2020-03-02 11:14:13 +01:00

43 lines
1.2 KiB
Bash

# Template file for 'chicken'
pkgname=chicken
version=5.2.0
revision=1
short_desc="Practical and portable Scheme system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://www.call-cc.org"
changelog="https://code.call-cc.org/releases/$version/NEWS"
distfiles="http://code.call-cc.org/releases/$version/$pkgname-$version.tar.gz"
checksum=819149c8ce7303a9b381d3fdc1d5765c5f9ac4dee6f627d1652f47966a8780fa
do_configure() {
make -B -f Makefile.linux chicken-defaults.h PREFIX=/usr
}
do_build() {
make C_COMPILER="$CC" \
C_COMPILER_OPTIMIZATION_OPTIONS="$CFLAGS" \
LINKER_LINK_SHARED_PROGRAM_OPTIONS="$LDFLAGS" \
PREFIX=/usr PLATFORM=linux
}
do_install() {
make C_COMPILER="$CC" \
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"
}
}