summaryrefslogtreecommitdiff
path: root/community/desmume/PKGBUILD
blob: 5138954fd7e183ea7ef0ed402002c3dc828d8b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 67526 2012-03-13 10:38:03Z giovanni $
# Maintainer: Jonathan Conder <jonno dot conder at gmail dot com>
# Maintainer: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Nathan Jones <nathanj@insightbb.com>
# Contributor: Javier "Phrodo_00" Aravena <phrodo.00 at gmail dot com>
# Contributor: angvp <angvp at archlinux dot us>
# Contributor: Allan <mcrae_allan at hotmail dot com>
# Contributor: w0rm <w0rmtux at gmail dot com>
# Contributor: vEX <vex at niechift dot com>
# Contributor: Asher256 <achrafcherti at gmail dot com>

pkgname=desmume
pkgver=0.9.7
pkgrel=4
pkgdesc="Nintendo DS emulator"
arch=('i686' 'x86_64')
url="http://desmume.org/"
license=('GPL')
depends=('agg' 'gtkglext' 'libglade' 'desktop-file-utils' 'libpcap')
makedepends=('intltool')
replaces=('desmume-core' 'desmume-cli' 'desmume-gtk' 'desmume-glade')
install=desmume.install
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
        'desmume-0.9.7-zlib.1.2.6-fix.patch')
sha256sums=('0a0f7ef3cc76ff0bbc6f3df47c3689653617074ea7ffc354e9fa1240c5336523'
            'baaf68be32f09690975d6309af6988c038e708ef322ed7e4b370d87087c7b6ba')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i "${srcdir}/desmume-0.9.7-zlib.1.2.6-fix.patch" 

  ./configure --prefix=/usr \
              --enable-wifi
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}