summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe5f0e3b1f53abca1f3c1102a23cca1daf0dfaed (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
# Maintainer: dekart811

pkgname=bsnes-hd
_gitver=beta_10_3
pkgver=beta_10_3.r0.g87173e8
pkgrel=1
pkgdesc='Nintendo SNES emulator, featuring HD Mode 7 and Widescreen.'
arch=('x86_64')
url='https://github.com/DerKoun/bsnes-hd'
license=('GPL3')
depends=('alsa-lib' 'cairo' 'gcc-libs' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk2' 'gtksourceview2' 'libao' 'libgl' 'libpulse' 'libx11' 'libxext' 'libxv' 'openal' 'pango' 'sdl' 'libudev.so' 'sdl2')
makedepends=('git')
conflicts=('bsnes' 'bsnes-classic' 'higan-bsnes')
source=(git+https://github.com/DerKoun/bsnes-hd.git)
md5sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	git describe --long --tags | sed 's/^FOO-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cp "../${pkgname}.patch" "${pkgname}/"
	cd "${pkgname}"
	git checkout tags/"${_gitver}" -b "${_gitver}"
	# fix root issue in package
	git apply "${pkgname}.patch"
}

build() {
	cd "${pkgname}/bsnes"
	make
}

package() {
	cd "${pkgname}/bsnes"
	make prefix="${pkgdir}/usr" install
}