aboutsummaryrefslogblamecommitdiffstats
path: root/community/dolphin-emu/APKBUILD
blob: f86ddfb4d3378ece4c902d25be92920030552889 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
                      
        
                                                  

                                                                              
                     



























                                   
                     

                


                                                                                                
                                                                                            
                                        
                                   











                                                                                  







                          













                                                                        


         
                                  
                                         
                                             


                                               
                      


         
                








                                                                                   
                                                                                                                                                                                                          
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=dolphin-emu
pkgver=5.0_git20200422
pkgrel=0
_commit="2673280614f8f7727641176a8255a19bf658b1c8"
 # Upstream doesn't actively support non 64-bit platforms and they're too slow
 # to emulate any games anyway
arch="x86_64 aarch64"
url="https://dolphin-emu.org"
pkgdesc="A Gamecube / Wii emulator"
license="GPL-2.0-or-later"
depends="mbedtls"
makedepends="
	cmake
	ninja
	mesa-dev
	mesa-egl
	ffmpeg-dev
	libevdev-dev
	eudev-dev
	pugixml-dev
	zlib-dev
	lzo-dev
	libpng-dev
	sfml-dev
	libusb-dev
	miniupnpc-dev
	mbedtls-dev
	curl-dev
	hidapi-dev
	libx11-dev
	qt5-qtbase-dev
	libxi-dev
	bluez-dev
	pulseaudio-dev
	vulkan-headers
	libxrandr-dev
	fmt-dev
	enet-dev
	"
# The following dependencies are required, but atm not supported for using system wide libraries
# minizip-dev xxhash-dev soundtouch-dev gtest-dev
source="https://github.com/dolphin-emu/dolphin/archive/$_commit/dolphin-emu-$_commit.tar.gz"
subpackages="$pkgname-doc $pkgname-lang"
builddir="$srcdir/dolphin-$_commit"

prepare() {
	default_prepare

	# Make sure we never use non-system libraries except the ones that are not
	# supported being used system-wide by removing them from the Externals
	# folder

	KEEP_SOURCES="
		Bochs_disasm
		FreeSurround
		cpp-optparse
		glslang
		imgui
		xxhash
		minizip
		soundtouch
		cubeb
		gtest
		picojson
	"

	# Move the libraries we want to keep out of the externals folder
	for s in $KEEP_SOURCES; do
		mv -v "Externals/$s" .
	done

	# Remove the rest
	rm -r Externals/*

	# Move them back
	for s in $KEEP_SOURCES; do
		mv -v "$s" "Externals/"
	done
}

build() {
	cmake -B build -G Ninja  \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DUSE_DISCORD_PRESENCE=OFF \
		-DUSE_SHARED_ENET=ON \
		-DDISTRIBUTOR="alpinelinux.org"
	ninja -C build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" ninja -C build install

	install -Dm 644 Data/51-usb-device.rules -t "$pkgdir"/usr/lib/udev/rules.d/
}

sha512sums="61c4cece8df87f443588e26c213f40930208a7b486aa778ac436bf03e88f019324f1a996c029380811693699957b3ae5c83fd27245d9defd297d7d0f98415d59  dolphin-emu-2673280614f8f7727641176a8255a19bf658b1c8.tar.gz"