updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dolphin-emu-git / PKGBUILD
blobc96ae4f3d505a01369d92f0798bda4ff99435708
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>
5 # Contributor: Zephyr
6 # Special thanks to Zhou Xin <soul916@hotmail.com> for rewriting this to use cmake
8 pkgname=dolphin-emu-git
9 pkgver=20120116
10 pkgrel=1
11 pkgdesc="A GameCube and Wii emulator (Dev tree Git version)"
12 arch=('i686' 'x86_64')
13 url="http://www.dolphin-emulator.com/"
14 license=('GPL2')
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')
20 CXXFLAGS="-fpermissive"
22 source=('dolphin-emu.desktop'
23         'Dolphin_Logo.png')
25 sha256sums=('1cf1cc034ad03cf068d39fd3bac0103dfb663695966a6846e530d8b8cb363470'
26             '4ef79175305df7bb9201931870c4bedc5eda9c94b65311973dfd41c1128784d1')
27 _gitroot=http://code.google.com/p/dolphin-emu/
28 _gitname=dolphin-emu
31 build() {
32   cd "$srcdir"
33   msg "Connecting to GIT server...."
35   if [[ -d "${_gitname}" ]]; then
36     cd "${_gitname}" && git pull origin
37     msg "The local files are updated."
38   else
39     git clone "${_gitroot}" "${_gitname}"
40   fi
42   msg "GIT checkout done or server timeout"
43   msg "Starting build..."
46   rm -rf "${srcdir}/${_gitname}-build"
47   cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
48   mkdir -p "${srcdir}/${_gitname}-build/build"
49   cd "${srcdir}/${_gitname}-build/build"
51   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
52   make
55 package() {
56         cd "${srcdir}/${_gitname}-build/build"
58         make DESTDIR=${pkgdir} install
60         install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
61         install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/icons/dolphin-emu.png"