updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openbve / PKGBUILD
blob366d7205e1cff1fd6028df93069872f48c164573
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=openbve
3 pkgver=1.4.0.0
4 pkgrel=1
5 pkgdesc="Free-as-in-freedom train simulator placed in the public domain"
6 arch=('any')
7 url="http://trainsimframework.org/"
8 license=('custom:public domain')
9 depends=('mono' 'taoframework' 'sdl' 'openal')
10 source=(http://trainsimframework.org/common/openbve_stable_source.zip
11         http://trainsimframework.org/common/openbve_stable.zip
12         openbve.sh
13         openbve.desktop)
14 md5sums=('d306c160bd58373be7926e5585463e97'
15          '4e8f47832f5b341ca08c52ffe094c88b'
16          'fec92946f773f56588a71de310847ce0'
17          'acb0dd3ea602910181b8cdb8375c794e')
19 build() {
20   cd "$srcdir/openBVE"
22   xbuild /p:Configuration=Release OpenBve/OpenBve.csproj
25 package() {
26   cd "$srcdir"
28   #binaries
29   install -d $pkgdir/usr/lib/$pkgname/
30   install -Dm644 openBVE/OpenBveApi/bin/Release/OpenBveApi.dll $pkgdir/usr/lib/$pkgname/
31   install -Dm644 openBVE/OpenBve/bin/Release/OpenBve.exe $pkgdir/usr/lib/$pkgname/
33   #data
34   mkdir -p $pkgdir/usr/share/games/$pkgname
35   cp -r Data $pkgdir/usr/share/games/$pkgname/
36   ln -s ../../share/games/$pkgname/Data $pkgdir/usr/lib/$pkgname/Data
38   #executable
39   install -Dm755 $pkgname.sh $pkgdir/usr/bin/$pkgname
41   #desktop file and icon
42   install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
43   mkdir -p $pkgdir/usr/share/pixmaps
44   ln -s ../games/$pkgname/Data/Menu/logo.png $pkgdir/usr/share/pixmaps/$pkgname.png
46   #license
47   install -Dm644 Readme.txt $pkgdir/usr/share/licenses/$pkgname/Readme.txt