updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / opendylan / PKGBUILD
blob38f20518bf045ddea5df5f79561e97a2d9ade428
1 # Contributor: manveru <m.fellinger@gmail.com>
2 # Contributor: Florian Richter <Florian_Richter@gmx.de>
3 # Contributor: b4283
4 # Maintainer: Alfredo Beaumont <alfredo.beaumont@gmail.com>
6 pkgname=opendylan
7 pkgver=2011.1
8 pkgrel=2
9 pkgdesc="Dylan is an advanced, object-oriented, dynamic language which supports rapid program development."
10 arch=(i686 x86_64)
11 url="http://www.opendylan.org"
12 license=('custom')
13 install=opendylan.install
14 options=(!strip)
16 if [[ $CARCH == "i686" ]]; then
17     depends=('glibc')
18     source=(http://opendylan.org/downloads/$pkgname/$pkgver/$pkgname-$pkgver-x86-linux.tar.bz2)
19     md5sums=('285ea1a0e51bb23d061b774c0987498a')
20 elif [[ $CARCH == "x86_64" ]]; then
21     depends=('glibc' 'gc')
22     source=(http://opendylan.org/downloads/$pkgname/$pkgver/$pkgname-$pkgver-x86_64-linux.tar.bz2)
23     md5sums=('df2342c6c427b4ea4ccb50c4c5988a24')
25         
26 build() {
27     mkdir -p $pkgdir/usr/bin
28     mkdir -p $pkgdir/opt/$pkgname
29     cp -r $srcdir/$pkgname-$pkgver/{bin,databases,lib,sources} $pkgdir/opt/$pkgname
30     ln -sf /opt/$pkgname/bin/{dswank,dylan-compiler,make-dylan-app} $pkgdir/usr/bin/$1
31     if [[ $CARCH = "x86_64" ]]; then
32       cp -r $srcdir/$pkgname-$pkgver/include $pkgdir/opt/$pkgname
33     fi
34     install -D -m644 $srcdir/$pkgname-$pkgver/License.txt $pkgdir/usr/share/licenses/$pkgname/License.txt