mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
a00588f44e
Also deleted bsnes, as higan-098 replaces it. I will upload higan-098 to the CCR.
64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
# Maintainer: Francesco Marinucci <franzmari [at] chakra-project [dot] it>
|
|
#
|
|
# Note: Newer versions of higan do not provide a Qt GUI. We should probably
|
|
# drop this package at some point, and simply keep the regular, up-to-date
|
|
# version of higan in the CCR.
|
|
|
|
pkgname=higan-qt
|
|
_pkgname=higan
|
|
pkgver=094
|
|
pkgrel=1
|
|
pkgdesc='Nintendo multi-system emulator'
|
|
arch=('x86_64')
|
|
url='http://byuu.org/'
|
|
license=('GPL3')
|
|
depends=('libao' 'libpulse' 'openal' 'qt' 'sdl' 'dialog')
|
|
makedepends=('mesa')
|
|
optdepends=('beat: Delta patcher')
|
|
provides=("higan=${pkgver}")
|
|
conflicts=('higan-gtk' 'higan')
|
|
source=("https://gitlab.com/higan/higan/repository/archive.tar.gz?ref=v${pkgver}"
|
|
'higan')
|
|
md5sums=('7568af5467b435d94ea51f35554647d4'
|
|
'2dbbb988e9ea452e9c2d5a4c57ea5bdc')
|
|
|
|
_profiles='accuracy balanced performance'
|
|
|
|
prepare() {
|
|
cd ${srcdir}/higan-v${pkgver}-*
|
|
|
|
sed "s/-march=native/-march=${CARCH/_/-} -mtune=generic/g" -i Makefile
|
|
|
|
moc -i -Iphoenix/qt/ -o phoenix/qt/platform.moc phoenix/qt/platform.moc.hpp
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/higan-v${pkgver}-*
|
|
|
|
make phoenix=qt -C ananke
|
|
|
|
for _profile in ${_profiles}; do
|
|
make phoenix=qt profile=${_profile}
|
|
mv out/higan{,-${_profile}}
|
|
make clean
|
|
done
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/higan-v${pkgver}-*
|
|
|
|
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
|
|
}
|