desktop/higan/PKGBUILD

60 lines
1.7 KiB
Bash
Raw Normal View History

2014-06-04 16:28:33 +08:00
# Maintainer: Francesco Marinucci <franzmari [at] chakra-project [dot] it>
pkgname=higan
2014-06-04 16:28:33 +08:00
pkgver=094
pkgrel=1
pkgdesc='Nintendo multi-system emulator'
arch=('x86_64')
2014-06-04 16:28:33 +08:00
url='http://byuu.org/'
license=('GPL3')
2013-12-10 14:47:45 +08:00
depends=('libao' 'libpulse' 'openal' 'qt' 'sdl' 'dialog')
2014-06-04 16:28:33 +08:00
makedepends=('mesa')
optdepends=('beat: Delta patcher')
conflicts=('higan-gtk')
2014-06-04 16:28:33 +08:00
source=("http://byuu.org/files/${pkgname}_v${pkgver}-source.tar.xz"
2013-12-10 14:47:45 +08:00
'higan')
2014-06-04 16:28:33 +08:00
sha256sums=('5e149df9d50c1066eb97c0d66665428d75304da782bba5a87078b87fc311151b'
'c799232a0f67c4b7f40fc6ad05325a6c04e86d78e40f361d02f168a16d11d048')
2014-06-04 16:28:33 +08:00
_profiles='accuracy balanced performance'
2013-12-10 14:47:45 +08:00
prepare() {
2014-06-04 16:28:33 +08:00
cd higan_v${pkgver}-source
2013-12-10 14:47:45 +08:00
2014-06-04 16:28:33 +08:00
sed "s/-march=native/-march=${CARCH/_/-} -mtune=generic/g" -i Makefile
2013-12-10 14:47:45 +08:00
moc -i -Iphoenix/qt/ -o phoenix/qt/platform.moc phoenix/qt/platform.moc.hpp
}
build() {
2014-06-04 16:28:33 +08:00
cd higan_v${pkgver}-source
2014-06-04 16:28:33 +08:00
make phoenix=qt -C ananke
2013-12-10 14:47:45 +08:00
for _profile in ${_profiles}; do
2014-06-04 16:28:33 +08:00
make phoenix=qt profile=${_profile}
2013-12-10 14:47:45 +08:00
mv out/higan{,-${_profile}}
make clean
done
}
package() {
2014-06-04 16:28:33 +08:00
cd higan_v${pkgver}-source
2013-12-10 14:47:45 +08:00
install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{applications,pixmaps,higan/Video\ Shaders}}
install -m 755 {..,"${pkgdir}"/usr/bin}/higan
2014-06-04 16:28:33 +08:00
install -m 644 data/higan.desktop "${pkgdir}"/usr/share/applications/
install -m 644 data/higan.png "${pkgdir}"/usr/share/pixmaps/
2013-12-10 14:47:45 +08:00
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
}
2013-12-10 14:47:45 +08:00
# vim: ts=2 sw=2 et: