1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: LTSmash <lord.ltsmash@gmail.com>
3 # Maintainer: Zauber Exonar <zauberexonar at gmail>
5 pkgname=opensimulator-osgrid
6 pkgver=01122010.v0.6.9.482dcb7
8 pkgdesc="OSGrid's distribution of OpenSimulator, preconfigured to connect with OSGrid"
10 url="http://www.osgrid.org/elgg/"
12 depends=('mono' 'sqlite3' 'mysql')
13 optdepends=('mono-old')
14 makedepends=('nant' 'unzip')
15 install=$pkgname.install
16 source=(http://osgrid.org/download/osgrid.opensim-$pkgver.zip \
17 osgrid.sh OpenSim.ini-$pkgver)
18 md5sums=('2fe5e654777a03b61c7a7167ebd14414'
19 '8ad5aab5c434aef00d12b08343a5da5a'
20 '253bb36cd7635a5b48300060c649bbf8')
25 cp $startdir/OpenSim.ini-$pkgver OpenSim.ini || return 1
26 cp OpenSim.ini OpenSim.ini.example || return 1
28 #copying Mono.Posix.dll so that OpenSimulator can use sockets, and by extension MySQL
29 cp /usr/lib/mono/1.0/Mono.Posix.dll Mono.Posix.dll || return 1
31 install -d "$pkgdir"/opt/$pkgname/bin
32 cp -r ./* "$pkgdir"/opt/$pkgname/bin/
34 find "$pkgdir"/opt/$pkgname/bin -type d -exec chmod 755 {} +
35 find "$pkgdir"/opt/$pkgname/bin -type f -exec chmod 644 {} +
36 find "$pkgdir"/opt/$pkgname/bin -name "*.exe" -exec chmod 755 {} +
37 find "$pkgdir"/opt/$pkgname/bin -name "*.ini" -exec chmod 666 {} +
38 find "$pkgdir"/opt/$pkgname/bin -name "*.xml" -exec chmod 666 {} +
39 chmod 777 "$pkgdir"/opt/$pkgname/bin/{,*/}
40 chmod 755 "$pkgdir"/opt/$pkgname/bin/opensim-ode.sh
41 # chmod 666 "$pkgdir"/opt/$pkgname/bin/OpenSim.log
42 # install launch script
43 install -m755 -D ../osgrid.sh "$pkgdir"/usr/bin/osgrid