summaryrefslogtreecommitdiff
path: root/~brendan
diff options
context:
space:
mode:
Diffstat (limited to '~brendan')
-rw-r--r--~brendan/guile/PKGBUILD32
-rw-r--r--~brendan/guile/guile.install23
2 files changed, 55 insertions, 0 deletions
diff --git a/~brendan/guile/PKGBUILD b/~brendan/guile/PKGBUILD
new file mode 100644
index 000000000..af8827563
--- /dev/null
+++ b/~brendan/guile/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Patrick McCarty <pnorcks at gmail dot com>
+# Contributor: Emmanuel 'guinness' Boudreault
+# Parabola Maintainer: Brendan Tildesley (brendyn)
+#
+# This is `guile-devel' from AUR, with very little changes.
+pkgname=guile
+pkgver=2.0.5
+pkgrel=1
+pkgdesc="GNU Ubiquitous Intelligent Language for Extensions - a portable, embeddable Scheme implementation written in C"
+url="http://www.gnu.org/software/guile/"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('gmp>=4.3.1' 'libtool' 'ncurses>=5.7' 'texinfo'
+ 'libunistring' 'gc' 'libffi')
+conflicts=('guile' 'guile-git')
+provides=("guile=$pkgver")
+install=guile.install
+options=('!libtool')
+source=(ftp://ftp.gnu.org/pub/gnu/guile/guile-${pkgver}.tar.gz)
+sha256sums=('2a026ea6cdbc51ca71bcd9787839debfa45ac5db1e26dc00b30ca9b128b10956')
+
+build() {
+ cd "${srcdir}/guile-${pkgver}"
+
+ ./configure --prefix=/usr
+ make LDFLAGS+="-lpthread"
+}
+
+package() {
+ cd "${srcdir}/guile-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
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: