updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ucb-scheme / PKGBUILD
blob0d6245f39bd97772b88d2408f2fb55adb0feb311
1 # maintainer perlaw
3 pkgname=ucb-scheme
4 _pkgname=stk
5 pkgver=1.3.6
6 pkgrel=2
7 arch=('i686' 'x86_64')
8 pkgdesc="UCB Scheme is a modified version of STk 4.0.1 by Erick Gallesio.  Very good for learning scheme with the video course provided by U. Cal. Berkeley.  With codes and modifications for the books: Simply scheme and Exploring scheme.  Envdraw is an amazing drawing tools for CS and other purpose."
9 url="http://www-inst.eecs.berkeley.edu/~scheme"
10 license=('GPL')
11 depends=()
12 conflicts=('stk')
13 source=(http://www-inst.eecs.berkeley.edu/~scheme/source/$_pkgname-$pkgver.tgz)
15 build() {
16   cd $srcdir/$_pkgname
17         chmod +x configure
18   ./configure --prefix=$pkgdir/usr --bindir=/usr/bin --libexecdir=/usr/lib/stk
19   make || return 1
20         make DESTDIR=$pkgdir/usr install
21         mv $pkgdir/usr/bin/arch/Linux/* $pkgdir/usr/lib/stk/1.3.6/
22   rm -rf $pkgdir/usr/bin/*
23         touch $pkgdir/usr/bin/stk
24         chmod +x $pkgdir/usr/bin/stk            
25   echo "STK_LIBRARY=/usr/lib/stk/$pkgver/ /usr/lib/stk/$pkgver/`arch`/stk" > $pkgdir/usr/bin/stk
27   cd $srcdir/ucb
28   ./configure --prefix=$pkgdir/usr 
29   make || return 1
30         make DESTDIR=$pkgdir/usr install
31   echo 'stk -load load-grfx "$@"' > $pkgdir/usr/bin/stk-grfx
32   echo 'stk -load load-explorin "$@"' > $pkgdir/usr/bin/stk-explorin
33   echo 'stk -load load-simply "$@"' > $pkgdir/usr/bin/stk-simply
36 md5sums=('b3941b397cb05e20eeae2f8245ca29f1')