From 8c6397096a684881fb3e15f3685f06861d0b685d Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Wed, 9 Nov 2011 21:58:53 +1100 Subject: GNU guile 2.0.3 --- ~brendan/guile/PKGBUILD | 27 +++++++++++++++++++++++++++ ~brendan/guile/guile.install | 23 +++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 ~brendan/guile/PKGBUILD create mode 100644 ~brendan/guile/guile.install (limited to '~brendan') diff --git a/~brendan/guile/PKGBUILD b/~brendan/guile/PKGBUILD new file mode 100644 index 000000000..c6297290a --- /dev/null +++ b/~brendan/guile/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Brendan Tildesley +pkgname=guile +pkgver=2.0.3 +pkgrel=1 +pkgdesc="GNU Ubiquitous Intelligent Language for Extensions - portable Scheme implementation written in C." +url="http://www.gnu.org/software/guile/" +license=('GPL3' 'LGPL3') +arch=(i686 x86_64 mips64el) +depends=('gmp>=4.1' 'libtool' 'gettext' 'libunistring' 'gc' 'libffi') +builddepends=('pkgconfig') +install=guile.install +source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha1sums=('4fde55bbd612adda267420d86d8b395d49031809') +# I think .xz is only provided for latest release, so change to .gz if it vanishes + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --disable-static \ + --disable-error-on-warning + make LDFLAGS+="-lpthread" +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} \ No newline at end of file diff --git a/~brendan/guile/guile.install b/~brendan/guile/guile.install new file mode 100644 index 000000000..ed113ab8f --- /dev/null +++ b/~brendan/guile/guile.install @@ -0,0 +1,23 @@ +infodir=usr/share/info +filelist=(guile.info + r5rs.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3