summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc439be29f4e78f03fcf704dd1601b0a495116c0 (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
# Maintainer: Elaina Martineau <elainamartineau@gmail.com>

pkgname=bsnes
pkgver=107
pkgrel=1
pkgdesc='Super Nintendo emulator focusing on performance, features, and ease of use.'
arch=('x86_64')
url='https://byuu.org/emulation/bsnes/'
license=('GPL3')
groups=()
depends=('libpulse' 'gtksourceview2' 'libxv' 'libao' 'openal' 'sdl2')
makedepends=()
optdepends=()
provides=()
conflicts=('bsnes-classic' 'bsnes-plus')
replaces=()
backup=()
options=()
install=
changelog=
source=("https://download.byuu.org/""$pkgname""_v""$pkgver""-source.7z")
noextract=()
sha256sums=('7b7fa745ce593f9912ce116bdf009cd2e70eb034cd7186264c4abedb87a5da36')

prepare() {
  cd "$pkgname""_v""$pkgver""-source"

  # Allow us to build as root
  sed -i '37 d; 38 d; 39 s/else //' higan/target-bsnes/GNUmakefile
}

build() {
  cd "$pkgname""_v""$pkgver""-source"

  make -C higan
}

package() {
  cd "$pkgname""_v""$pkgver""-source"

  make -C higan prefix="$pkgdir/usr" install
}