void-packages/srcpkgs/dolphin-emu/template
2021-10-18 10:17:30 +02:00

41 lines
1.5 KiB
Bash

# Template file for 'dolphin-emu'
pkgname=dolphin-emu
version=5.0.15260
revision=1
_dolphin_commit=207c931a04c8e2629a735bc2b3f36b5c89365ca7
_mgba_commit=9cccc5197ed73ba0a54f584d3121c27dc97405f5
#Version/hash pair can be found at https://dolphin-emu.org/download/
archs="x86_64* aarch64* ppc64le* i686*"
wrksrc="dolphin-${_dolphin_commit}"
build_style=cmake
configure_args="-DUSE_SHARED_ENET=ON"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
makedepends="
zlib-devel glew-devel libusb-devel qt5-devel miniupnpc-devel libevdev-devel
SDL2-devel pulseaudio-devel alsa-lib-devel ffmpeg-devel libgomp-devel libcurl-devel
portaudio-devel libopenal-devel soundtouch-devel lzo-devel libbluetooth-devel
mbedtls-devel SFML-devel libenet-devel liblzma-devel pugixml-devel"
depends="desktop-file-utils"
short_desc="Gamecube / Wii / Triforce emulator"
maintainer="Henry Naguski <henry@nilsu.org>"
license="GPL-2.0-or-later"
homepage="http://dolphin-emu.org"
distfiles="https://github.com/dolphin-emu/dolphin/archive/${_dolphin_commit}.tar.gz
https://github.com/mgba-emu/mgba/archive/${_mgba_commit}.tar.gz"
checksum="84b21a6a14cf999e8c2bc44175f549aedaa4bd28a79eaa65afddd72f14905a3a
d1c9fa071aae747fe1350130a2c69ed618ad52a759b35b119dbb7292252b4a77"
nopie=yes
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*) ;;
*) configure_args+=" -DENABLE_GENERIC=ON" ;;
esac
post_extract() {
rmdir Externals/mGBA/mgba
mv ../mgba-${_mgba_commit} Externals/mGBA/mgba
}
post_install() {
rm -f ${DESTDIR}/usr/lib/*.a
}