updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / dolphin-emu-git / PKGBUILD
blob830a6df5fe519a136c15951fcdc9e4805ce31f58
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=20111022
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')
21 source=('dolphin-emu.desktop'
22         'Dolphin_Logo.png')
24 sha256sums=('1cf1cc034ad03cf068d39fd3bac0103dfb663695966a6846e530d8b8cb363470'
25             '4ef79175305df7bb9201931870c4bedc5eda9c94b65311973dfd41c1128784d1')
26 _gitroot=http://code.google.com/p/dolphin-emu/
27 _gitname=dolphin-emu
30 build() {
31   cd "$srcdir"
32   msg "Connecting to GIT server...."
34   if [[ -d "${_gitname}" ]]; then
35     cd "${_gitname}" && git pull origin
36     msg "The local files are updated."
37   else
38     git clone "${_gitroot}" "${_gitname}"
39   fi
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
51   make
54 package() {
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"