1 # Maintainer: Joe Amenta <amentajo@msu.edu>
2 # Original Maintainer: Devin Cofer <ranguvar@archlinux.us>
3 # Contributor: Hans-Kristian Arntzen <maister@archlinux.us>
5 # Special thanks to Zhou Xin <soul916@hotmail.com> for rewriting this to use cmake
7 pkgname=dolphin-emu-svn
10 pkgdesc="A GameCube and Wii emulator (Dev tree)"
11 arch=('i686' 'x86_64')
12 url="http://www.dolphin-emu.com/"
15 makedepends=('subversion' 'cmake' 'glproto' 'opencl-headers')
16 depends=('sdl' 'libxxf86vm' 'libao' 'wxgtk>=2.8' 'wxgtk<2.9' 'wiiuse' 'nvidia-cg-toolkit' 'glew' 'mesa' 'libgl')
17 provides=("dolphin-emu=${pkgver}-${pkgrel}")
18 conflicts=('dolphin-emu' 'dolphin-emu-svn-bin' )
20 source=('dolphin-emu.desktop'
23 sha256sums=('1cf1cc034ad03cf068d39fd3bac0103dfb663695966a6846e530d8b8cb363470'
24 '4ef79175305df7bb9201931870c4bedc5eda9c94b65311973dfd41c1128784d1')
26 _svntrunk="http://dolphin-emu.googlecode.com/svn/trunk"
27 _svnmod="dolphin-emu-svn"
33 if [ -d "${_svnmod}/.svn" ]; then
34 (cd $_svnmod && svn up -r $pkgver)
36 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
39 msg "SVN checkout done or server timeout"
40 msg "Starting make..."
42 rm -rf "$srcdir/$_svnmod-build"
43 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
44 mkdir -p "${srcdir}/${_svnmod}-build/build"
45 cd "${_svnmod}-build/build"
47 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
51 cd "${srcdir}/${_svnmod}-build/build"
53 make DESTDIR=${pkgdir} install
55 install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
56 install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/icons/dolphin-emu.png"