updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / mupen64plus-core-hg / PKGBUILD
blobe5a4e6fda102cff502b0ebcf4350a15a8b34156c
1 # Contributer: BeholdMyGlory <larvid@gmail.com>
3 pkgname='mupen64plus-core-hg'
4 pkgver=159
5 pkgrel=1
6 pkgdesc="Core of Mupen64Plus v2.0, a Nintendo 64 emulator. Latest hg pull."
7 url="http://bitbucket.org/richard42/mupen64plus-core/"
8 license='GPL'
9 arch=('i686' 'x86_64')
10 groups=('mupen64plus-hg')
11 conflicts=('mupen64plus')
12 depends=('sdl' 'libpng' 'mesa' 'freetype2')
13 makedepends=('mercurial')
15 _hgroot='http://bitbucket.org/richard42'
16 _hgrepo='mupen64plus-core'
18 build() {
20   cd "${srcdir}"
22   if [ -d $_hgrepo ]; then
23     cd $_hgrepo && hg pull -u
24   else
25     hg clone "${_hgroot}/${_hgrepo}"
26     cd $_hgrepo
27   fi
29   make -C projects/unix all || return 1
31   mkdir -p "${pkgdir}/usr/lib"
32   mkdir -p "${pkgdir}/usr/share/mupen64plus"
33   mkdir -p "${pkgdir}/usr/include/mupen64plus"
35   cp -P projects/unix/*.so.* "${pkgdir}/usr/lib" || return 1
36   cp data/* "${pkgdir}/usr/share/mupen64plus" || return 1
37   cp src/api/m64p_*.h "${pkgdir}/usr/include/mupen64plus" || return 1