# Template file for 'dolphin-emu'
only_for_archs="x86_64 x86_64-musl"

pkgname=dolphin-emu
version=5.0
revision=17
wrksrc="dolphin-${version}"
build_style=cmake
nopie=yes
configure_args="-DUSE_X11=1 -DUSE_EGL=0
 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-3.0"
hostmakedepends="pkg-config"
makedepends="
 zlib-devel glew-devel libusb-devel gtk+-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 wxWidgets-devel
 mbedtls-devel SFML-devel libenet-devel"
depends="desktop-file-utils"
short_desc="A Gamecube / Wii / Triforce emulator"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://dolphin-emu.org"
distfiles="https://github.com/dolphin-emu/dolphin/archive/${version}.tar.gz"
checksum=62c4602055767ab314ff50a3b94ea57f792832aa1629e6b1117ebce10518dc0b

post_install() {
	rm -f ${DESTDIR}/usr/lib/*.a
}
