From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/gauche/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ community/gauche/gauche.install | 21 +++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 community/gauche/PKGBUILD create mode 100644 community/gauche/gauche.install (limited to 'community/gauche') diff --git a/community/gauche/PKGBUILD b/community/gauche/PKGBUILD new file mode 100644 index 000000000..efc16877c --- /dev/null +++ b/community/gauche/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 94289 2013-07-18 21:59:48Z arodseth $ +# Maintainer: Alexander Rødseth +# Contributor: Stefan Husmann +# Contributor: Motohiro Ueki +# Contributor: nkoizu + +pkgname=gauche +pkgver=0.9.3.3 +pkgrel=1 +url='http://practical-scheme.net/gauche/' +pkgdesc='R5RS Scheme implementation (provides gosh)' +depends=('gdbm' 'zlib' 'slib') +license=('BSD') +arch=('x86_64' 'i686') +install="$pkgname.install" +source=("http://downloads.sourceforge.net/$pkgname/Gauche-$pkgver.tgz") +sha256sums=('3d8b70075faa0f7a24f8d112cc102ee3e1066680cdd19d324d59f33fab79caac') + +build() { + cd "$srcdir/Gauche-$pkgver" + + ./configure --prefix=/usr --enable-multibyte=utf-8 \ + --enable-threads=pthreads + make -j1 +} + +package() { + cd "$srcdir/Gauche-$pkgver" + + make -j1 DESTDIR="$pkgdir" install-pkg install-doc + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/gauche/gauche.install b/community/gauche/gauche.install new file mode 100644 index 000000000..2edfe522e --- /dev/null +++ b/community/gauche/gauche.install @@ -0,0 +1,21 @@ +infodir=/usr/share/info +filelist=(gauche-refe.info gauche-refj.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done + /usr/bin/gosh -ftest -uslib -E"require 'new-catalog" -Eexit; +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} -- cgit v1.2.3-54-g00ecf