void-packages/srcpkgs/dolphin-emu/template
Michal Vasilek d46015b88b dolphin-emu: embed correct version
the version detected when not building from a git repository is not
precise enough to allow netplay to work

Closes: #34691
2021-12-29 15:55:12 +01:00

45 lines
1.6 KiB
Bash

# Template file for 'dolphin-emu'
pkgname=dolphin-emu
version=5.0.15445
revision=2
_dolphin_commit=db02b50d2ecdfbbc21e19aadc57253c353069f77
_mgba_commit=40d4c430fc36caeb7ea32fd39624947ed487d2f2
#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
-DDOLPHIN_WC_DESCRIBE=${version%.*}-${version##*.}
-DDOLPHIN_WC_REVISION=$_dolphin_commit
-DDOLPHIN_WC_BRANCH=master"
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="19136c7b1bce2ff444e4a611f56268b371f4fa83a3e3ff5f3d9e2dbb34385692
3cabf00a97cf4fb15fe8524b3d02190acdd003f25967cdbbf8de958649b8061b"
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
}