updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / larceny-bin / PKGBUILD
bloba80a97bddda26bd483c4ca85d060a6c7f4fdda7a
1 # Contributor: gucong <gucong43216@gmail.com>
3 pkgname=larceny-bin
4 pkgver=0.97
5 pkgrel=2
6 pkgdesc="A simple and efficient implementation of the Scheme programming language (binary)"
7 arch=('i686')
8 license=('LGPL')
9 url="http://www.larcenists.org/"
10 depends=('sh')
11 source=(http://www.larcenists.org/LarcenyReleases/larceny-0.97-bin-native-ia32-linux86.tar.gz)
12 md5sums=('efbcb56ce9cae8f60cea10016f922760')
14 build() {
15   local LARCENY_ROOT=/usr/lib/larceny
16   cd $srcdir/larceny-$pkgver-bin-native-ia32-linux86
17   mkdir -p $pkgdir/usr/share/licenses/larceny/
18   mv COPYRIGHT $pkgdir/usr/share/licenses/larceny/COPYRIGHT
19   mkdir -p $pkgdir/usr/bin
20   mv compile-stale larceny twobit scheme-script $pkgdir/usr/bin
21   sed -i "s|# LARCENY_ROOT=.*|LARCENY_ROOT=$LARCENY_ROOT|" $pkgdir/usr/bin/larceny
22   sed -i "s|# LARCENY_ROOT=.*|LARCENY_ROOT=$LARCENY_ROOT|" $pkgdir/usr/bin/scheme-script
23   sed -i "s|# LARCENY_ROOT=.*|LARCENY_ROOT=$LARCENY_ROOT|" $pkgdir/usr/bin/twobit
24   mkdir -p $pkgdir/usr/share/doc/larceny
25   mv doc examples README-FIRST.txt $pkgdir/usr/share/doc/larceny
26   mkdir -p $pkgdir/usr/lib/larceny
27   mv * $pkgdir/usr/lib/larceny