# Maintainer: Natanael Copa pkgname=guile pkgver=1.8.7 pkgrel=4 pkgdesc="Guile is a portable, embeddable Scheme implementation written in C" url="http://www.gnu.org/software/guile/" license="GPL" subpackages="$pkgname-dev $pkgname-doc" makedepends="gmp-dev libtool ncurses-dev texinfo" depends= install= source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz guile-1.8.7-gcc45.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --disable-error-on-warning || return 1 make LDFLAGS+="-lpthread" || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="991b5b3efcbbc3f7507d05bc42f80a5e guile-1.8.7.tar.gz 608a4d2d7bc072d5edc34aa2be1f609f guile-1.8.7-gcc45.patch"