updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / rigsofrods-svn / PKGBUILD
blobc9fe52ace191a61a69ed06bf501c9dd79c37eddd
1 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
3 pkgname=rigsofrods-svn
4 pkgver=2132
5 pkgrel=1
6 pkgdesc="An open source vehicle simulator based on soft-body physics"
7 arch=('i686' 'x86_64')
8 url="http://www.rigsofrods.com"
9 license=('GPL')
10 depends=('angelscript' 'caelum-hg' 'mygui-svn' 'socketw' 'ogre' 'openal' 'ogre-pagedgeometry' 'wxgtk-2.9')
11 optdepends=('rigsofrods-content-pack: Official contents pack')
12 makedepends=('cmake' 'subversion')
13 conflicts=('rigsofrods')
14 provides=('rigsofrods')
15 backup=('opt/rigsofrods/plugins.cfg')
16 source=('plugins.cfg'
17         'RoR.desktop'
18         'rorconfig.desktop'
19         'RoR.png')
20 md5sums=('4a17e366ecfdb6f43ab448a45863a760'
21          'f26d4c5e8ecbb799095452c5d9034625'
22          'b4763676cfc156c854aeaa3481772291'
23          'b1b8a67e7402f1fbbcf14dbf03303415')
25 _svnmod="ror-trunk"
26 _svntrunk="https://rigsofrods.svn.sourceforge.net/svnroot/rigsofrods/trunk"
28 build() {
29  cd "$srcdir"
30  mkdir -p ~/.subversion; touch ~/.subversion/servers
31  msg "Connecting to SVN server..."
32  msg "Checking out $_svnmod"
33  yes "p" | svn co "$_svntrunk" "$_svnmod"
34  msg "SVN checkout done or server timeout"
36  msg "Starting build..."
37  cd "$srcdir/$_svnmod"
38  cmake \
39   -DROR_BUILD_CONFIGURATOR=TRUE \
40   -DROR_BUILD_CONVERTER=TRUE \
41   -DROR_BUILD_SIM=TRUE \
42   -DROR_BUILD_TOOLS=TRUE \
43   -DROR_USE_MYGUI=TRUE \
44   -DROR_USE_OPENAL=TRUE \
45   -DROR_USE_SOCKETW=TRUE \
46   -DROR_USE_PAGED=TRUE \
47   -DROR_USE_CAELUM=TRUE \
48   -DROR_USE_ANGELSCRIPT=TRUE \
49   -DROR_USE_CURL=TRUE \
50   -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.9 \
51   -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.9 \
52   -DSOCKETW_INCLUDE_DIRS=/usr/include \
53   -DSOCKETW_LIBRARIES=/usr/lib/libSocketW.so \
54   -DCMAKE_PREFIX_PATH=/opt/rigsofrods .
55  make
58 package() {
59  mkdir "$pkgdir/opt"
60  svn export "$srcdir/ror-trunk/bin" "$pkgdir/opt/rigsofrods"
61  cp "$srcdir"/{ror-trunk/bin/{RoR,rorconfig,libangelscript_addons.a},plugins.cfg} "$pkgdir/opt/rigsofrods"
63  install -Dm 644 "$srcdir/RoR.png" "$pkgdir/usr/share/pixmaps/RoR.png"
64  install -Dm 644 "$srcdir/RoR.desktop" "$pkgdir/usr/share/applications/RoR.desktop"
65  install -Dm 644 "$srcdir/rorconfig.desktop" "$pkgdir/usr/share/applications/rorconfig.desktop"