updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / netlogo / PKGBUILD
blobfbae3802fbb26be9489f8246f424de02e37d39ef
1 # Contributor: gucong <gucong43216@gmail.com>
3 pkgname=netlogo
4 pkgver=4.1.3
5 pkgrel=1
6 pkgdesc="A multi-agent programmable modeling environment."
7 arch=('i686' 'x86_64')
8 [ "$CARCH" = "i686"   ] && NARCH=amd64
9 [ "$CARCH" = "x86_64" ] && NARCH=x86
10 license=('LGPL' 'custom')
11 url="http://ccl.northwestern.edu/netlogo/"
12 depends=('java-runtime')
13 source=(http://ccl.northwestern.edu/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
14                 'netlogo'
15                 'hubnet'
16                 'netlogo-3D'
17                 'netlogo-headless')
18 md5sums=('0b89d0c3d02d385446259acf3c7e1d14'
19          '6aa5963c9454a4e35fda52dc7dc7e3cc'
20          'd66e6d07949e50f0af079f6c852cc64a'
21          '57b493124e71631afe38662e40a5637f'
22          '2404fc7bd1745a50b851f8871ebe8348')
24 package() {
25   mkdir -p $pkgdir/usr/bin $pkgdir/opt/$pkgname
26   cd $srcdir
27   find $pkgname-$pkgver -type d -name Linux-$NARCH | xargs rm -r
28   cp $pkgname-$pkgver/* $pkgdir/opt/$pkgname -r
29   cp netlogo hubnet netlogo-3D netlogo-headless $pkgdir/usr/bin