summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c23b75dfa3cabba79d11a79e97036bf843b913c (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
# Maintainer: Salvador PardiƱas <darkfm@vera.com.uy>
pkgname=higan-git
pkgver=105_tr1
pkgrel=1
pkgdesc="Multisystem emulator by Byuu"
arch=('x86_64' 'i686')
url="https://byuu.org"
license=('GPL3')
groups=()
depends=('libpulse' 'gtksourceview2' 'sdl' 'libxv' 'libao' 'openal')
makedepends=('git')
provides=('higan')
conflicts=('higan')
replaces=()
backup=()
options=()
source=(
	'git+https://gitlab.com/higan/higan.git'
	'allow_root.patch'
	'getver.patch')
noextract=()
md5sums=('SKIP'
         '5aaffc97c4c58e95b3f1db33e8184518'
         '9fdbe0c87e2e89c0f53b96bf313cd090')

prepare() {
	cd $srcdir/higan
	patch -Np1 -i "${srcdir}/allow_root.patch"
	patch -Np1 -i "${srcdir}/getver.patch"
	chmod +x getver.sh
}

pkgver() {
	cd "$srcdir/higan"
	./getver.sh
}

build() {
	cd "$srcdir/higan"
	make -C icarus compiler=g++
	make -C higan compiler=g++
}

package() {
	cd "$srcdir/higan"
	mkdir -p "$pkgdir/usr/bin"
	mkdir -p "$pkgdir/usr/share/applications"
	make -C icarus prefix="$pkgdir/usr" install
	make -C higan prefix="$pkgdir/usr" install
	chmod -R 777 "$pkgdir/usr/share/higan"
	chmod -R 777 "$pkgdir/usr/share/icarus"
}