43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'chicken'
|
|
pkgname=chicken
|
|
version=5.3.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=c3ad99d8f9e17ed810912ef981ac3b0c2e2f46fb0ecc033b5c3b6dca1bdb0d76
|
|
|
|
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"
|
|
}
|
|
}
|