void-packages/srcpkgs/chicken/template
2017-01-21 00:28:30 -05:00

43 lines
1.1 KiB
Bash

# Template file for 'chicken'
pkgname=chicken
version=4.11.0
revision=1
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=e3dc2b8f95b6a3cd59c85b5bb6bdb2bd9cefc45b5d536a20cad74e3c63f4ad89
# 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"
}
}