updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dolphin-emu / PKGBUILD
blob72db31cc4ee55b76cd1e0ac9ed853d225118fd8a
1 # Maintainer: Jeremy Newton (Mystro256)
2 # Contributor: Jeremy Newton (Mystro256)
3 # Special thanks to the contributors of dolphin-emu-svn: for the icon, desktop file and some lines from the PKGBUILD
4 # Thanks to all that contributed! :)
6 pkgname=dolphin-emu
7 pkgver=3.0
8 pkgrel=6
9 pkgdesc="A GameCube and Wii emulator (stable git branch)"
10 arch=('i686' 'x86_64')
11 url="http://www.dolphin-emulator.com/"
12 license=('GPL2')
14 makedepends=('git' 'cmake' 'glproto' 'opencl-headers')
15 depends=('sdl' 'libxxf86vm' 'libao' 'wxgtk' 'wiiuse' 'nvidia-cg-toolkit' 'glew1.6' 'mesa' 'libgl')
16 provides=("dolphin-emu=${pkgver}-${pkgrel}")
18 # Cannot be BUILT with sfml later than 1.6
19 # IF YOU NEED SFML>=1.7 FOR SOMETHING ELSE, TRY REMOVING THE CONFLICT
20 # BELOW AND ONLY TEMPORARY UNINSTALLING SFML TO BUILD/INSTALL DOLPHIN
21 conflicts=('dolphin-emu-no-svn-config-dir-svn' 'dolphin-emu-git' 'dolphin-emu-svn' 'dolphin-emu-svn-bin' 'dolphin-emu-svn-bin' 'sfml>=1.7' 'sfml-git')
23 source=('dolphin-emu.desktop'
24         'Dolphin_Logo.png')
26 md5sums=('feed4580c2e6bfbc7f6c67dad861daae'
27             'd15c51f547b4bd47e510faac40bcc9d6')
29 build() {
30         cd "${srcdir}"
32         msg "Checking git...."
33         if [ -d dolphin-emu-3.0 ] ; then
34                 # To avoid any conflict, grab a fresh clone
35                 msg "Removing old files"
36                 rm -R -f dolphin-emu-3.0
37         fi
38         
39         msg "Cloning from GIT"
40         git clone https://code.google.com/p/dolphin-emu/ dolphin-emu-3.0
41         cd dolphin-emu-3.0
43         #Checkout at the STABLE 3.0 Branch of the git
44         msg "Checking out at stable 3.0 branch"
45         git checkout 3.0
47         msg "GIT checkout done or server timeout"
48         
49         mkdir Build && cd Build
50         cmake .. -DCMAKE_INSTALL_PREFIX=/usr
51         make
53 package() {
54         cd "${srcdir}/dolphin-emu-3.0/Build"
56         make DESTDIR=${pkgdir} install
58         install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
59         install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/pixmaps/dolphin-emu.png"