mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-29 10:52:25 +08:00
79 lines
3.2 KiB
Bash
79 lines
3.2 KiB
Bash
# Arch Maintainer: Maxime Gauduin <alucryd@gmail.com>
|
|
# Chakra Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
|
|
|
pkgname=higan
|
|
pkgver=092
|
|
pkgrel=3
|
|
pkgdesc="Nintendo multi-system emulator"
|
|
arch=('x86_64')
|
|
url="http://code.google.com/p/higan/"
|
|
license=('GPL3')
|
|
depends=('libao' 'libpulse' 'openal' 'qt' 'sdl' 'kde-baseapps')
|
|
makedepends=('mesa')
|
|
optdepends=('beat: Delta patcher')
|
|
conflicts=('higan-gtk')
|
|
source=("http://higan.googlecode.com/files/higan_v${pkgver}-source.tar.xz"
|
|
"http://higan.googlecode.com/files/purify_v03-source.tar.xz" 'higan' 'higan.desktop' 'purify.desktop')
|
|
sha1sums=('a205005f118f6e138065af6e0d14ed990b8f1ce1'
|
|
'2aa16f492c879d2cc1d4ffa28f4729a5ed5bb1c3'
|
|
'9c65d76be5a6482455a3157ed3089a78bc109a64'
|
|
'55f4de0a65d6428840d013f9b003d88158c131c7'
|
|
'cc43a961ac6334ea81898a9ec5f89f1797e3f9b1')
|
|
|
|
_profiles="accuracy balanced performance"
|
|
|
|
build() {
|
|
cd "${srcdir}"
|
|
moc -i -Ipurify_v03-source/ananke/phoenix/qt/ -o purify_v03-source/ananke/phoenix/qt/platform.moc purify_v03-source/ananke/phoenix/qt/platform.moc.hpp
|
|
moc -i -Ipurify_v03-source/purify/phoenix/qt/ -o purify_v03-source/purify/phoenix/qt/platform.moc purify_v03-source/purify/phoenix/qt/platform.moc.hpp
|
|
moc -i -Ihigan_v${pkgver}-source/higan/phoenix/qt/ -o higan_v${pkgver}-source/higan/phoenix/qt/platform.moc higan_v${pkgver}-source/higan/phoenix/qt/platform.moc.hpp
|
|
|
|
# Compile libananke
|
|
cd "${srcdir}"/purify_v03-source/ananke
|
|
make compiler=gcc platform=x phoenix=qt
|
|
|
|
# Compile purify
|
|
cd "${srcdir}"/purify_v03-source/purify
|
|
make compiler=gcc platform=x link='-s -lX11 -ldl -Wl,-export-dynamic' phoenix=qt
|
|
|
|
# Compile higan
|
|
cd "${srcdir}"/higan_v${pkgver}-source/higan
|
|
sed -i 's|flags += -march=native|flags += -mtune=generic|' Makefile
|
|
for _profile in ${_profiles} ; do
|
|
make compiler=gcc platform=x target=ethos phoenix=qt profile=${_profile}
|
|
mv out/higan out/higan-${_profile}
|
|
make clean
|
|
done
|
|
}
|
|
|
|
package() {
|
|
# Install common files
|
|
cd "${srcdir}"/higan_v${pkgver}-source
|
|
install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{applications,pixmaps,higan}}
|
|
install -m 755 "${srcdir}"/higan "${pkgdir}"/usr/bin/higan
|
|
install -m 644 "${srcdir}"/higan.desktop "${pkgdir}"/usr/share/applications/higan.desktop
|
|
install -m 644 higan/data/higan.png "${pkgdir}"/usr/share/pixmaps/higan.png
|
|
cp -dr --no-preserve=ownership higan/{profile/*,data/cheats.bml} "${pkgdir}"/usr/share/higan/
|
|
cp -dr --no-preserve=ownership shaders "${pkgdir}/usr/share/higan/Video Shader"s
|
|
|
|
# Fix some permissions
|
|
find "${pkgdir}"/usr/share/higan -type d -exec chmod 755 {} +
|
|
find "${pkgdir}"/usr/share/higan -type f -exec chmod 644 {} +
|
|
|
|
# Install libananke
|
|
cd "${srcdir}"/purify_v03-source/ananke
|
|
install -m 644 libananke.so "${pkgdir}"/usr/lib/libananke.so.1
|
|
ln -s /usr/lib/libananke.so.1 "${pkgdir}"/usr/lib/libananke.so
|
|
|
|
# Install purify
|
|
cd "${srcdir}"/purify_v03-source/purify
|
|
install -m 755 purify "${pkgdir}"/usr/bin/purify
|
|
install -m 644 "${srcdir}"/purify.desktop "${pkgdir}"/usr/share/applications/purify.desktop
|
|
|
|
# Install higan
|
|
cd "${srcdir}"/higan_v${pkgver}-source/higan
|
|
for _profile in ${_profiles} ; do
|
|
install -m 755 out/higan-${_profile} "${pkgdir}"/usr/bin/higan-${_profile}
|
|
done
|
|
}
|