aboutsummaryrefslogtreecommitdiffstats
path: root/main/bsnes/APKBUILD
blob: 66c99178c97e00f9b7574d0a8c3b34dd4fbb54e3 (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
43
44
45
46
47
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=bsnes
pkgver=0.86
_x=${pkgver%.*}
_y=${pkgver#*.}
_pkgver="v${_x}${_y}"
pkgrel=1
pkgdesc="high accuracy SNES emulator"
url="http://byuu.org/bsnes/"
arch="all"
license="GPL"
depends=
depends_dev="qt-dev openal-soft-dev sdl-dev alsa-lib-dev mesa-dev libao-dev
	libxv-dev gtk+-dev"
makedepends="$depends_dev"
install=""
subpackages=
source="http://bsnes.googlecode.com/files/${pkgname}_${_pkgver}-source.tar.bz2
	no-pulseaudio.patch
	define-disassembler_read-relb.patch
	"

_builddir="${srcdir}/${pkgname}_${_pkgver}-source/bsnes"
prepare() {
	local i
	cd "$_builddir/.."
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make compiler=gcc prefix=/usr profile=performance || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix=/usr profile=performance install || return 1
}

md5sums="54f73b38d24405186b538e01713b0c1f  bsnes_v086-source.tar.bz2
e67461ca1ffa9840936ed08e9a31d775  no-pulseaudio.patch
4a820f42ecb7f17eab0ffd91ffd9a18b  define-disassembler_read-relb.patch"