blob: 2e5f7240b5abc7e1d702670f97852857da09e4a0 (
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
|
#!/bin/sh
NAME="snes9x"
DESC="Super NES Emulator"
MAKEDEPS="alsa-lib glib gtk3 gtkmm3 libepoxy libpng libxrandr libxv meson minizip portaudio sdl2 wayland zlib"
glslang=bcf6a2430e99e8fc24f9f266e99316905e6d5134
spirv=1458bae62ec67ea7d12c5a13b740e23ed4bb226c
PKG_VER=1.61
SOURCE="https://github.com/snes9xgit/snes9x/archive/$PKG_VER.tar.gz"
ADDITIONAL="https://github.com/KhronosGroup/glslang/archive/$glslang.tar.gz
https://github.com/KhronosGroup/SPIRV-Cross/archive/$spirv.tar.gz"
prepare() {
tar xf $glslang.tar.gz
tar xf $spirv.tar.gz
cd gtk
rm -r ../shaders/glslang ../shaders/SPIRV-Cross
ln -s ../glslang-$glslang ../shaders/glslang
ln -s ../SPIRV-Cross-$spirv ../shaders/SPIRV-Cross
}
build() {
meson --prefix=/usr \
-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
}
|