summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/guile
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/guile')
-rw-r--r--abs/extra-testing/guile/PKGBUILD26
-rw-r--r--abs/extra-testing/guile/guile.install27
2 files changed, 53 insertions, 0 deletions
diff --git a/abs/extra-testing/guile/PKGBUILD b/abs/extra-testing/guile/PKGBUILD
new file mode 100644
index 0000000..3721e3f
--- /dev/null
+++ b/abs/extra-testing/guile/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 23033 2009-01-01 17:11:52Z jgc $
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=guile
+pkgver=1.8.6
+pkgrel=1
+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.6-7' 'texinfo')
+install=guile.install
+source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+options=('!libtool')
+md5sums=('9e23d3dbea0e89bab8a9acc6880150de')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --disable-networking \
+ --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
+}
diff --git a/abs/extra-testing/guile/guile.install b/abs/extra-testing/guile/guile.install
new file mode 100644
index 0000000..8fab0b1
--- /dev/null
+++ b/abs/extra-testing/guile/guile.install
@@ -0,0 +1,27 @@
+files=(goops.info
+ guile-tut.info
+ guile.info
+ guile.info-1
+ guile.info-2
+ guile.info-3
+ guile.info-4
+ guile.info-5
+ guile.info-6
+ guile.info-7
+ r5rs.info)
+
+post_install() {
+ for f in "${files[@]}"; do
+ install-info usr/share/info/${f}.gz usr/share/info/dir 2>/dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for f in "${files[@]}"; do
+ install-info --delete usr/share/info/${f}.gz usr/share/info/dir 2> /dev/null
+ done
+}