summaryrefslogtreecommitdiff
path: root/repo/snes9x/snes9x.xibuild
blob: 8059644b2c6d3f5cc6a67130a839d83d5ce82b26 (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
#!/bin/sh

NAME="snes9x"
DESC="Super NES Emulator"

MAKEDEPS="meson glib sdl2 gtk3 libxrandr libepoxy wayland libxv portaudio alsa-lib libpng minizip zlib"

PKG_VER=1.60
SOURCE="https://github.com/snes9xgit/snes9x/archive/$PKG_VER.tar.gz"

prepare () {
    cd gtk
}

build() {
	meson --prefix=/usr \
		-Dopengl=true \
		-Dgtk3=true \
		-Dpulseaudio=false \
	. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
	ln -s snes9x-gtk "$PKG_DEST"/usr/bin/snes9x
}