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