void-packages/srcpkgs/guile/template

47 lines
1.4 KiB
Bash

# Template file for 'guile'
pkgname=guile
version=3.0.10
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-error-on-warning
--with-libgmp-prefix=${XBPS_CROSS_BASE}/usr
--with-libunistring-prefix=${XBPS_CROSS_BASE}/usr
--with-libreadline-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="automake pkg-config texinfo"
makedepends="gc-devel gmp-devel libatomic_ops-devel libffi-devel libltdl-devel
libunistring-devel readline-devel"
short_desc="Portable, embeddable Scheme implementation written in C"
maintainer="Anjandev Momi <anjan@momi.ca>"
license="GPL-3.0-or-later, LGPL-3.0-or-later"
homepage="http://www.gnu.org/software/guile"
distfiles="${GNU_SITE}/guile/guile-${version}.tar.gz"
checksum=2dbdbc97598b2faf31013564efb48e4fed44131d28e996c26abe8a5b23b56c2a
if [ "$CROSS_BUILD" ]; then
# Need host guile to cross compile
export GUILE_FOR_BUILD=/usr/bin/guile
hostmakedepends+=" guile"
fi
libguile_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove "usr/lib/guile/3.0/extensions/guile-readline.so.*"
vmkdir usr/share/gdb/auto-load/usr/lib
mv ${PKGDESTDIR}/usr/lib/*.scm ${PKGDESTDIR}/usr/share/gdb/auto-load/usr/lib
}
}
guile-devel_package() {
short_desc+=" - development files"
depends="gmp-devel gc-devel guile>=${version}_${revision}"
pkg_install() {
vmove usr/bin/guile-config
vmove usr/include
vmove usr/share/aclocal
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}