1. # Maintainer: schuay <jakob.gruber@gmail.com>
  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! :)
  5.  
  6. pkgname=dolphin-emu
  7. pkgver=3.0
  8. pkgrel=8
  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')
  13.  
  14. makedepends=('git' 'cmake' 'glproto' 'opencl-headers')
  15. depends=('sdl' 'libxxf86vm' 'libao' 'wxgtk' 'wiiuse' 'nvidia-cg-toolkit' 'glew1.6' 'mesa' 'libgl')
  16.  
  17. # Cannot be BUILT with sfml later than 1.6
  18. # IF YOU NEED SFML>=1.7 FOR SOMETHING ELSE, TRY REMOVING THE CONFLICT
  19. # BELOW AND ONLY TEMPORARY UNINSTALLING SFML TO BUILD/INSTALL DOLPHIN
  20. conflicts=('dolphin-emu-git' 'sfml>=1.7' 'sfml-git')
  21.  
  22. source=('dolphin-emu.desktop'
  23.         'Dolphin_Logo.png')
  24. md5sums=('feed4580c2e6bfbc7f6c67dad861daae'
  25.          'd15c51f547b4bd47e510faac40bcc9d6')
  26.  
  27. build() {
  28.   cd "${srcdir}"
  29.  
  30.   msg "Checking git...."
  31.   if [ -d dolphin-emu-3.0 ] ; then
  32.     # To avoid any conflict, grab a fresh clone
  33.     msg "Removing old files"
  34.     rm -R -f dolphin-emu-3.0
  35.   fi
  36.  
  37.   msg "Cloning from GIT"
  38.   git clone https://code.google.com/p/dolphin-emu/ dolphin-emu-3.0
  39.   cd dolphin-emu-3.0
  40.  
  41.   msg "Checking out at stable 3.0 branch"
  42.   git checkout 3.0
  43.  
  44.   msg "GIT checkout done or server timeout"
  45.  
  46.   # Fix build with Bluez
  47.   git format-patch f15aeb26b37d88c451887709ead523e5aeb49390..8a8dc77ef19446f97d210f0602aaa218144adf0e
  48.   git format-patch 63176ba38d55b2489291e56ef1fa6c34a7f7a9d4..b69a1d225a0736a1fabbb6b03bcdb5815f681de0
  49.  
  50.   patch -Np1 -i 0001-enable-c-11-compilation-in-cmakelists.patch
  51.   patch -Np1 -i 0001-Use-std-gnu-0x-instead-of-std-c-0x.patch
  52.  
  53.   mkdir build && cd build
  54.   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  55.   make ${MAKEFLAGS}
  56. }
  57.  
  58. package() {
  59.   cd "${srcdir}/dolphin-emu-3.0/build"
  60.  
  61.   make DESTDIR=${pkgdir} install
  62.  
  63.   install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
  64.   install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/pixmaps/dolphin-emu.png"
  65. }
  66.  
  67. # vim:set ts=2 sw=2 et:
  68.  

Posted by Xiao-Long Chen at 09 Mar 2012, 23:13:18 Europe/Berlin
Language: bash