void-packages/srcpkgs/guile1.8/template

40 lines
1.2 KiB
Bash

# Template file for 'guile1.8'
pkgname="guile1.8"
version="1.8.8"
revision=2
wrksrc=${pkgname/1.8/}-${version}
build_style="gnu-configure"
hostmakedepends="pkg-config"
makedepends="gmp-devel libltdl-devel ncurses-devel readline-devel"
configure_args="--disable-static --disable-error-on-warning --program-suffix='-1.8'"
short_desc="A portable, embeddable Scheme implementation written in C"
maintainer="newbluemoon <blaumolch@mailbox.org>"
homepage="https://www.gnu.org/software/guile/guile.html"
license="LGPL-2.1"
distfiles="${GNU_SITE}/${pkgname/1.8/}/${pkgname/1.8/}-${version}.tar.gz"
checksum=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" guile1.8"
make_build_args="GUILE_FOR_BUILD=guile-1.8"
fi
post_install() {
# conflicts with guile-2.0
rm -rf ${DESTDIR}/usr/share/info
}
guile1.8-devel_package() {
short_desc+=" - development files"
depends="gmp-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/guile-config-1.8
sed -i '1s|/usr/bin/guile|/usr/bin/guile-1.8|' ${PKGDESTDIR}/usr/bin/guile-config-1.8
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
mv ${PKGDESTDIR}/usr/share/aclocal/{guile.m4,guile-1.8.m4}
}
}