blob: fd9fec9202a1c2379b527f4b4b3e7f5a9f673494 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=snes9x
pkgver=1.58
pkgrel=0
pkgdesc="Super NES Emulator"
url="http://www.snes9x.com"
arch="all"
license="custom"
makedepends="
alsa-lib-dev
autoconf
automake
gtk+3.0-dev
libpng-dev
libxml2-dev
libxrandr-dev
libepoxy-dev
minizip-dev
nasm
portaudio-dev
sdl2-dev
zlib-dev
"
subpackages="$pkgname-lang $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/snes9xgit/snes9x/archive/${pkgver}.tar.gz"
prepare() {
cd "$builddir"
default_prepare
cd gtk
./autogen.sh
}
check() {
cd "$builddir"/gtk
echo "src/gtk_shader_parameters.cpp" >> po/POTFILES.in
make check
}
build() {
cd "$builddir"/gtk
export ZLIB=1
export UNZIP_SUPPORT=1
export JMA_SUPPORT=1
export RIGHTSHIFT_IS_SAR=1
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-netplay \
--with-opengl \
--with-gtk3 \
--without-pulseaudio
make
}
package() {
cd "$builddir"/gtk
make DESTDIR="$pkgdir" install
ln -s snes9x-gtk "$pkgdir"/usr/bin/snes9x
install -D -m644 "$builddir"/LICENSE "$pkgdir"/usr/share/doc/$pkgname/LICENSE
}
sha512sums="51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d snes9x-1.58.tar.gz"
|