updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / scm / PKGBUILD
blob18123448ffaf569875fd7312a1c9fb4134ea6fd8
1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 # Maintainer: Michael S. Walker <barrucadu@localhost>
4 pkgname=scm
5 pkgver=5e7
6 pkgrel=2
7 pkgdesc="An R5RS Scheme (IEEE P1178).  Written in C and runs under many OSes."
8 url="http://people.csail.mit.edu/jaffer/SCM"
9 arch=('i686' 'x86_64')
10 license=('LGPL')
11 depends=(slib)
12 source=(http://groups.csail.mit.edu/mac/ftpdir/scm/$pkgname-$pkgver.zip)
13 md5sums=('d53c0e7f11e468a40222f59a37a71edf')
15 build() {
16   export SCHEME_LIBRARY_PATH=/usr/share/slib/
17   cd "$srcdir/$pkgname"
19   make clean
20   ./configure --quiet --prefix="$pkgdir/usr/"
21   
22   make scmlit
23   #make all
24   make
26   ./build > buildscript
27   chmod +x buildscript
28   ./buildscript
31 package() {
32   export SCHEME_LIBRARY_PATH=/usr/share/slib/
33   cd "$srcdir/$pkgname"
35   #make install bugs out?
37   # horrible hack
38   install -d "$pkgdir/usr/bin/"
39   touch "$pkgdir/usr/bin/scm"
40   echo "#!/bin/sh" >> "$pkgdir/usr/bin/scm"
41   echo "export SCHEME_LIBRARY_PATH=/usr/share/slib/" >> "$pkgdir/usr/bin/scm"
42   echo "export SCM_INIT_PATH=/usr/share/scm/require.scm"  >> "$pkgdir/usr/bin/scm"
43   echo "/usr/share/scm/scm $*" >> "$pkgdir/usr/bin/scm"
44   chmod +x "$pkgdir/usr/bin/scm"
46   install -D -m755 scm "$pkgdir/usr/share/scm/scm"
48   for file in *.scm; do
49     install -D -m644 $file "$pkgdir/usr/share/scm/$file"
50   done