blob: fdad4d44004de7416d5c8b35cfac967e0e5c614a (
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
57
58
|
# $Id: PKGBUILD 104429 2014-01-20 19:23:37Z alucryd $
# Maintainer: Maxime Gauduin <alucryd@gmail.com>
pkgname=higan-gtk
pkgver=094
pkgrel=1
pkgdesc='Nintendo multi-system emulator'
arch=('i686' 'x86_64')
url='http://byuu.org/'
license=('GPL3')
depends=('libao' 'libpulse' 'libxv' 'openal' 'sdl' 'xdialog')
makedepends=('mesa')
optdepends=('beat: Delta patcher')
conflicts=('higan-qt')
source=("http://byuu.org/files/${pkgname%-*}_v${pkgver}-source.tar.xz"
'higan')
sha256sums=('5e149df9d50c1066eb97c0d66665428d75304da782bba5a87078b87fc311151b'
'c799232a0f67c4b7f40fc6ad05325a6c04e86d78e40f361d02f168a16d11d048')
_profiles='accuracy balanced performance'
prepare() {
cd higan_v${pkgver}-source
sed "s/-march=native/-march=${CARCH/_/-} -mtune=generic/g" -i Makefile
}
build() {
cd higan_v${pkgver}-source
make phoenix=gtk -C ananke
for _profile in ${_profiles}; do
make phoenix=gtk profile=${_profile}
mv out/higan{,-${_profile}}
make clean
done
}
package() {
cd higan_v${pkgver}-source
install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{applications,pixmaps,higan/Video\ Shaders}}
install -m 755 {..,"${pkgdir}"/usr/bin}/higan
install -m 644 data/higan.desktop "${pkgdir}"/usr/share/applications/
install -m 644 data/higan.png "${pkgdir}"/usr/share/pixmaps/
cp -dr --no-preserve=ownership profile/* data/cheats.bml "${pkgdir}"/usr/share/higan/
cp -dr --no-preserve=ownership shaders/*.shader "${pkgdir}"/usr/share/higan/Video\ Shaders/
install -m 644 ananke/libananke.so "${pkgdir}"/usr/lib/libananke.so.1
ln -s libananke.so.1 "${pkgdir}"/usr/lib/libananke.so
for _profile in ${_profiles}; do
install -m 755 {out,"${pkgdir}"/usr/bin}/higan-${_profile}
done
}
# vim: ts=2 sw=2 et:
|