2021-01-01 05:37:03 +01:00
|
|
|
# Maintainer: Brendan Szymanski <bscubed@pm.me>
|
2020-12-09 05:09:45 +01:00
|
|
|
|
|
|
|
_pkgname=yuzu
|
|
|
|
pkgname=$_pkgname-early-access
|
2021-06-04 14:40:06 +02:00
|
|
|
pkgver=1751
|
2021-01-01 21:51:15 +01:00
|
|
|
pkgrel=1
|
2021-01-01 05:37:03 +01:00
|
|
|
pkgdesc="An experimental open-source Nintendo Switch emulator/debugger (mainline GIT version)"
|
2020-12-09 05:09:45 +01:00
|
|
|
arch=('i686' 'x86_64')
|
2021-01-01 05:37:03 +01:00
|
|
|
url="https://yuzu-emu.org/"
|
2020-12-09 05:09:45 +01:00
|
|
|
license=('GPL2')
|
2021-01-01 05:37:03 +01:00
|
|
|
depends=('boost-libs' 'shared-mime-info' 'hicolor-icon-theme' 'sdl2' 'qt5-base' 'qt5-multimedia' 'qt5-webengine' 'libxkbcommon-x11' 'ffmpeg' 'fmt' 'libzip' 'opus' 'libfdk-aac' 'lz4' 'mbedtls' 'openssl' 'zstd')
|
2021-05-20 14:23:14 +02:00
|
|
|
makedepends=('git' 'glslang' 'cmake' 'ninja' 'python2' 'graphviz' 'doxygen' 'clang' 'boost' 'catch2' 'nlohmann-json' 'rapidjson' 'qt5-tools' 'desktop-file-utils')
|
2020-12-09 05:09:45 +01:00
|
|
|
optdepends=('qt5-wayland: for Wayland support')
|
2021-05-19 22:32:48 +02:00
|
|
|
provides=('yuzu')
|
|
|
|
conflicts=('yuzu')
|
2021-01-01 21:51:15 +01:00
|
|
|
source=("https://github.com/pineappleEA/pineapple-src/archive/EA-${pkgver}.tar.gz")
|
2021-06-04 14:40:06 +02:00
|
|
|
md5sums=('447b1f07b4b471b37335ae6bb8db4b02')
|
2020-12-09 05:09:45 +01:00
|
|
|
|
|
|
|
prepare() {
|
2021-01-01 05:37:03 +01:00
|
|
|
cd "$srcdir/pineapple-src-EA-${pkgver}"
|
|
|
|
for i in patches/*.patch; do
|
|
|
|
patch -p1 < $i
|
|
|
|
done
|
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror$/-W/g' {} +
|
2021-05-19 22:32:48 +02:00
|
|
|
#find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} +
|
2021-01-01 05:37:03 +01:00
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
|
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/-Werror/-W/g' {} +
|
2020-12-09 05:09:45 +01:00
|
|
|
}
|
|
|
|
build() {
|
2021-01-01 05:37:03 +01:00
|
|
|
cd "$srcdir/pineapple-src-EA-${pkgver}"
|
|
|
|
mkdir -p build && cd build
|
2020-12-09 05:09:45 +01:00
|
|
|
cmake .. -GNinja \
|
|
|
|
-DTITLE_BAR_FORMAT_IDLE="yuzu Early Access $pkgver" \
|
|
|
|
-DTITLE_BAR_FORMAT_RUNNING="yuzu Early Access $pkgver | {3}" \
|
|
|
|
-DGIT_BRANCH="HEAD" \
|
|
|
|
-DGIT_DESC="$msvc" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DYUZU_ENABLE_COMPATIBILITY_REPORTING=ON \
|
|
|
|
-DYUZU_USE_BUNDLED_UNICORN=ON \
|
|
|
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
|
|
-DYUZU_USE_QT_WEB_ENGINE=ON \
|
|
|
|
-DUSE_DISCORD_PRESENCE=ON
|
2021-01-01 05:37:03 +01:00
|
|
|
|
2020-12-09 05:09:45 +01:00
|
|
|
ninja
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2021-01-01 05:37:03 +01:00
|
|
|
cd "$srcdir/pineapple-src-EA-${pkgver}/build"
|
|
|
|
ninja test
|
2020-12-09 05:09:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-01-01 05:37:03 +01:00
|
|
|
cd "$srcdir/pineapple-src-EA-${pkgver}/build"
|
|
|
|
DESTDIR="$pkgdir" ninja install
|
2020-12-09 05:09:45 +01:00
|
|
|
}
|