desktop/higan-qt/PKGBUILD

44 lines
1.2 KiB
Bash
Raw Normal View History

pkgname=higan-qt
_pkgname=higan
2016-08-17 20:49:41 +08:00
pkgver=101
pkgrel=1
2014-06-04 16:28:33 +08:00
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')
provides=("higan=${pkgver}")
conflicts=('higan-gtk' 'higan')
2016-08-17 20:49:41 +08:00
source=("http://download.byuu.org/higan_v${pkgver}-source.7z"
'0001-higan-flags.patch')
sha1sums=('c877108f2554c74e8a8aafea84b432bd8e988d9d'
'875c78770b845880d3786b5c2a4f7926c5211e14')
2013-12-10 14:47:45 +08:00
prepare() {
2016-08-17 20:49:41 +08:00
cd ${srcdir}/higan_v${pkgver}-source
2013-12-10 14:47:45 +08:00
2016-08-17 20:49:41 +08:00
patch -Np1 -i ../0001-higan-flags.patch
2013-12-10 14:47:45 +08:00
}
build() {
2016-08-17 20:49:41 +08:00
cd ${srcdir}/higan_v${pkgver}-source
2016-08-17 20:49:41 +08:00
export hiro=qt
make -C icarus
make -C higan
}
package() {
2016-08-17 20:49:41 +08:00
cd ${srcdir}/higan_v${pkgver}-source
2013-12-10 14:47:45 +08:00
2016-08-17 20:49:41 +08:00
install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,higan,pixmaps}}
install -m 755 icarus/out/icarus "${pkgdir}"/usr/bin/
install -m 755 higan/out/higan "${pkgdir}"/usr/bin/
install -m 644 higan/data/higan.desktop "${pkgdir}"/usr/share/applications/
install -m 644 higan/data/higan.png "${pkgdir}"/usr/share/pixmaps/
cp -dr --no-preserve='ownership' higan/systems/* higan/data/cheats.bml "${pkgdir}"/usr/share/higan/
2013-12-10 14:47:45 +08:00
}