1 # Maintainer: Lightning <sgsdxzy@gmail.com>
2 # Contributor: Joe Amenta <amentajo@msu.edu>
3 # Contributor: Devin Cofer <ranguvar@archlinux.us>
4 # Contributor: Hans-Kristian Arntzen <maister@archlinux.us>
6 # Special thanks to Zhou Xin <soul916@hotmail.com> for rewriting this to use cmake
8 pkgname=dolphin-emu-git
11 pkgdesc="A GameCube and Wii emulator (Dev tree Git version)"
12 arch=('i686' 'x86_64')
13 url="http://www.dolphin-emulator.com/"
16 makedepends=('git' 'cmake' 'glproto' 'opencl-headers')
17 depends=('sdl' 'libxxf86vm' 'libao' 'portaudio' 'wxgtk>=2.8' 'wxgtk<2.9' 'wiiuse' 'nvidia-cg-toolkit' 'glew' 'mesa' 'libgl')
18 provides=("dolphin-emu=${pkgver}-${pkgrel}")
19 conflicts=('dolphin-emu' 'dolphin-emu-svn-bin' 'dolphin-emu-svn')
21 source=('dolphin-emu.desktop'
24 sha256sums=('1cf1cc034ad03cf068d39fd3bac0103dfb663695966a6846e530d8b8cb363470'
25 '4ef79175305df7bb9201931870c4bedc5eda9c94b65311973dfd41c1128784d1')
26 _gitroot=http://code.google.com/p/dolphin-emu/
32 msg "Connecting to GIT server...."
34 if [[ -d "${_gitname}" ]]; then
35 cd "${_gitname}" && git pull origin
36 msg "The local files are updated."
38 git clone "${_gitroot}" "${_gitname}"
41 msg "GIT checkout done or server timeout"
42 msg "Starting build..."
45 rm -rf "${srcdir}/${_gitname}-build"
46 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
47 mkdir -p "${srcdir}/${_gitname}-build/build"
48 cd "${srcdir}/${_gitname}-build/build"
50 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
55 cd "${srcdir}/${_gitname}-build/build"
57 make DESTDIR=${pkgdir} install
59 install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
60 install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/icons/dolphin-emu.png"