blob: 647a42e21c9bb17d3b62ce9968c5c639d139c600 (
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
|
# Maintainer (Arch): carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Maintainer: André Silva <emulatorman@parabola.nu>
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname=reicast-multilib-git
pkgver=r1546.5fd66a1
pkgrel=1
pkgdesc="A multiplatform Sega Dreamcast emulator"
arch=('x86_64')
url="http://reicast.com/"
license=('GPL2')
conflicts=('reicast')
provides=('reicast')
makedepends=('git')
makedepends_x86_64=('gcc-multilib')
depends_x86_64=('lib32-libgl' 'lib32-alsa-plugins' 'lib32-libpulse')
optdepends=('xboxdrv: Userspace gamepad driver for Xbox and Xbox360 gamepads'
'antimicro: Graphical program used to map keyboard keys and mouse controls to gamepad buttons')
source=(reicast::"git+https://github.com/reicast/reicast-emulator.git"
'enable_x11_keyboard_support.patch'
'wait_if_two_frames_already_in_flight.patch')
sha256sums=('SKIP'
'095961538c13208b39ebb0b9d6b6e30c1225f218dcc67239a9d938a23aec601e'
'8f7b392ac6fac2d62e078a397f6b7c29ac3a23877d5c1a4566a58710b3383aef')
pkgver() {
cd reicast
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare () {
cd reicast
patch -Np1 -i "$srcdir"/enable_x11_keyboard_support.patch
patch -Np1 -i "$srcdir"/wait_if_two_frames_already_in_flight.patch
# Add experimental shadow support: http://github.com/reicast-emulator/issues/94
sed -i 's|//DrawModVols|DrawModVols|' core/rend/gles/gldraw.cpp
# Fix Xbox Input Axis
sed -i 's|DC_AXIS_LT, 0, 0, DC_AXIS_RT|0, 0, DC_AXIS_RT, DC_AXIS_LT|' core/linux-dist/joystick.cpp
# Enable Pulseaudio
sed -i 's|#USE_PULSEAUDIO|USE_PULSEAUDIO|' shell/linux/Makefile
}
build () {
linux32 make -C reicast/shell/linux
}
package () {
cd reicast
install -Dm755 shell/linux/reicast.elf "$pkgdir"/usr/bin/reicast
install -Dm755 shell/linux/nosym-reicast.elf "$pkgdir"/usr/bin/reicast-nosym
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|