PKGBUILDs/extra/guile/PKGBUILD
2011-01-21 20:33:46 -05:00

34 lines
1.1 KiB
Bash

# $Id: PKGBUILD 72807 2010-03-20 04:06:14Z allan $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# PlugApps: Kevin Mihelich <kevin@plugapps.com>
# - Patch to add -P for cpp, our newer version does things different
plugrel=1
pkgname=guile
pkgver=1.8.7
pkgrel=2
pkgdesc="Guile is a portable, embeddable Scheme implementation written in C"
url="http://www.gnu.org/software/guile/"
arch=(i686 x86_64)
license=('GPL')
depends=('gmp' 'libtool' 'ncurses>=5.7' 'texinfo')
install=guile.install
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
arm.patch)
options=('!libtool' '!makeflags')
md5sums=('991b5b3efcbbc3f7507d05bc42f80a5e'
'6c02500d12b732ecf9117fb99e9cb9f6')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i ${srcdir}/arm.patch
./configure --prefix=/usr --disable-error-on-warning || return 1
make LDFLAGS+="-lpthread" || return 1
make DESTDIR="${pkgdir}" install || return 1
rm -f "${pkgdir}/usr/share/info/dir"
gzip "${pkgdir}/usr/share/info"/* || return 1
}