summaryrefslogtreecommitdiff
path: root/pcr/reicast-git/PKGBUILD
blob: ab671fc2f1c1392475545d8bb1da53c7be9b55ca (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
# 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-git
pkgver=r1200.a9fc0f5
pkgrel=2
pkgdesc="A multiplatform Sega Dreamcast emulator"
arch=('i686' 'x86_64')
url="http://reicast.com/"
license=('GPL2' 'BSD' 'MIT')
conflicts=('reicast')
provides=('reicast')
makedepends=('git')
makedepends_x86_64=('gcc-multilib')
depends_x86_64=('lib32-libgl' 'lib32-alsa-plugins')
depends_i686=('libgl' 'alsa-plugins')
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_joystick_support.patch')
sha256sums=('SKIP'
            'e0f53e5834acb5978c2b9f55cbfb8586f9482ea0bab1eec4398d87608a9b264e')

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_joystick_support.patch
}

build () {
  make -C reicast/shell/lin86
}

package () {
  cd reicast

  install -Dm755 shell/lin86/reicast.elf "$pkgdir"/usr/bin/reicast
  # license
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}