# Maintainer: schuay <jakob.gruber@gmail.com>
# Contributor: Jeremy Newton (Mystro256)
# Special thanks to the contributors of dolphin-emu-svn: for the icon, desktop file and some lines from the PKGBUILD
# Thanks to all that contributed! :)
pkgname=dolphin-emu
pkgver=3.0
pkgrel=8
pkgdesc="A GameCube and Wii emulator (stable git branch)"
arch=('i686' 'x86_64')
url="http://www.dolphin-emulator.com/"
license=('GPL2')
makedepends=('git' 'cmake' 'glproto' 'opencl-headers')
depends=('sdl' 'libxxf86vm' 'libao' 'wxgtk' 'wiiuse' 'nvidia-cg-toolkit' 'glew1.6' 'mesa' 'libgl')
# Cannot be BUILT with sfml later than 1.6
# IF YOU NEED SFML>=1.7 FOR SOMETHING ELSE, TRY REMOVING THE CONFLICT
# BELOW AND ONLY TEMPORARY UNINSTALLING SFML TO BUILD/INSTALL DOLPHIN
conflicts=('dolphin-emu-git' 'sfml>=1.7' 'sfml-git')
source=('dolphin-emu.desktop'
'Dolphin_Logo.png')
md5sums=('feed4580c2e6bfbc7f6c67dad861daae'
'd15c51f547b4bd47e510faac40bcc9d6')
build() {
cd "${srcdir}"
msg "Checking git...."
if [ -d dolphin-emu-3.0 ] ; then
# To avoid any conflict, grab a fresh clone
msg "Removing old files"
rm -R -f dolphin-emu-3.0
fi
msg "Cloning from GIT"
git clone https://code.google.com/p/dolphin-emu/ dolphin-emu-3.0
cd dolphin-emu-3.0
msg "Checking out at stable 3.0 branch"
git checkout 3.0
msg "GIT checkout done or server timeout"
# Fix build with Bluez
git format-patch f15aeb26b37d88c451887709ead523e5aeb49390..8a8dc77ef19446f97d210f0602aaa218144adf0e
git format-patch 63176ba38d55b2489291e56ef1fa6c34a7f7a9d4..b69a1d225a0736a1fabbb6b03bcdb5815f681de0
patch -Np1 -i 0001-enable-c-11-compilation-in-cmakelists.patch
patch -Np1 -i 0001-Use-std-gnu-0x-instead-of-std-c-0x.patch
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make ${MAKEFLAGS}
}
package() {
cd "${srcdir}/dolphin-emu-3.0/build"
make DESTDIR=${pkgdir} install
install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/pixmaps/dolphin-emu.png"
}
# vim:set ts=2 sw=2 et: