Arch_PKGBUILD/PKGBUILD

150 lines
3.8 KiB
Bash
Raw Normal View History

2023-02-12 13:11:21 +01:00
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Alexandre Bouvier <contact@amb.tf>
pkgname=yuzu
2023-12-05 18:03:11 +01:00
pkgver=1641
2023-07-31 12:00:11 +02:00
pkgrel=1
2023-02-12 13:11:21 +01:00
pkgdesc='Nintendo Switch emulator'
arch=(x86_64)
url=https://yuzu-emu.org/
license=(GPL3)
depends=(
2023-11-20 16:24:25 +01:00
brotli
2023-02-12 13:11:21 +01:00
enet
gcc-libs
glibc
2023-11-20 16:24:25 +01:00
hicolor-icon-theme
2023-02-12 13:11:21 +01:00
libavcodec.so
libavutil.so
libboost_context.so
libcrypto.so
libfmt.so
libINIReader.so
libopus.so
libspeexdsp.so
libssl.so
libswscale.so
libusb-1.0.so
libva.so
libzstd.so
lz4
2023-11-20 16:24:25 +01:00
qt6-base
qt6-multimedia
qt6-webengine
2023-02-12 13:11:21 +01:00
sdl2
2023-11-20 16:24:25 +01:00
zlib
2023-02-12 13:11:21 +01:00
)
makedepends=(
boost
clang
cmake
git
glslang
llvm
ninja
nlohmann-json
2023-11-20 16:24:25 +01:00
qt6-tools
2023-02-12 13:11:21 +01:00
shaderc
spirv-headers
vulkan-headers
)
options=(!debug)
2023-12-05 18:03:11 +01:00
_tag=cf42a4a716606ed224f9bed05d9009317cc35a42
2023-02-12 13:11:21 +01:00
source=(
git+https://github.com/yuzu-emu/yuzu-mainline.git#tag=${_tag}
git+https://github.com/arsenm/sanitizers-cmake.git
git+https://github.com/yhirose/cpp-httplib.git
git+https://github.com/arun11299/cpp-jwt.git
git+https://github.com/mozilla/cubeb.git
git+https://github.com/MerryMage/dynarmic.git
2023-06-08 11:32:02 +02:00
git+https://github.com/bylaws/libadrenotools.git
2023-02-12 13:11:21 +01:00
yuzu-mbedtls::git+https://github.com/yuzu-emu/mbedtls.git
2023-12-01 15:56:12 +01:00
git+https://github.com/brofield/simpleini.git
2023-02-12 13:11:21 +01:00
yuzu-sirit::git+https://github.com/yuzu-emu/sirit.git
2023-06-20 09:38:35 +02:00
git+https://github.com/eggert/tz.git
git+https://github.com/lat9nq/tzdb_to_nx.git
2023-07-18 11:34:32 +02:00
git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
2023-02-12 13:11:21 +01:00
git+https://github.com/herumi/xbyak.git
)
b2sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
2023-06-08 11:32:02 +02:00
'SKIP'
2023-06-20 09:38:35 +02:00
'SKIP'
'SKIP'
2023-07-18 11:34:32 +02:00
'SKIP'
2023-12-01 15:56:12 +01:00
'SKIP'
2023-02-12 13:11:21 +01:00
'SKIP')
prepare() {
cd yuzu-mainline
git config submodule.cpp-httplib.url "${srcdir}"/cpp-httplib
git config submodule.cpp-jwt.url "${srcdir}"/cpp-jwt
git config submodule.cubeb.url "${srcdir}"/cubeb
git config submodule.dynarmic.url "${srcdir}"/dynarmic
2023-06-08 11:32:02 +02:00
git config submodule.libadrenotools.url "${srcdir}"/libadrenotools
2023-02-12 13:11:21 +01:00
git config submodule.mbedtls.url "${srcdir}"/yuzu-mbedtls
2023-12-01 15:56:12 +01:00
git config submodule.simpleini.url "${srcdir}"/simpleini
2023-02-12 13:11:21 +01:00
git config submodule.sirit.url "${srcdir}"/yuzu-sirit
2023-06-20 09:38:35 +02:00
git config submodule.tzdb_to_nx.url "${srcdir}"/tzdb_to_nx
2023-07-18 11:34:32 +02:00
git config submodule.VulkanMemoryAllocator.url "${srcdir}"/VulkanMemoryAllocator
2023-02-12 13:11:21 +01:00
git config submodule.xbyak.url "${srcdir}"/xbyak
git -c protocol.file.allow=always submodule update
2023-06-20 09:38:35 +02:00
pushd externals/cubeb
2023-02-12 13:11:21 +01:00
git config submodule.cmake/sanitizers-cmake.url "${srcdir}"/sanitizers-cmake
git -c protocol.file.allow=always submodule update
2023-06-20 09:38:35 +02:00
popd
pushd externals/nx_tzdb/tzdb_to_nx
git config submodule.externals/tz/tz.url "${srcdir}"/tz
git -c protocol.file.allow=always submodule update
popd
2023-02-12 13:11:21 +01:00
}
pkgver() {
cd yuzu-mainline
git describe --tags | sed 's/.*-//'
}
build() {
cmake -S yuzu-mainline -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_REPOSITORY=yuzu-emu/yuzu-mainline \
-DBUILD_TAG=${pkgver} \
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
2023-11-20 16:24:25 +01:00
-DENABLE_QT6=ON \
2023-02-12 13:11:21 +01:00
-DENABLE_QT_TRANSLATION=ON \
-DENABLE_SDL2=ON \
-DENABLE_WEB_SERVICE=ON \
-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON \
-DTITLE_BAR_FORMAT_IDLE="yuzu | ${pkgver} {}" \
-DTITLE_BAR_FORMAT_RUNNING="yuzu | ${pkgver} | {}" \
-DUSE_DISCORD_PRESENCE=OFF \
-DYUZU_CHECK_SUBMODULES=OFF \
-DYUZU_USE_BUNDLED_FFMPEG=OFF \
-DYUZU_USE_BUNDLED_QT=OFF \
-DYUZU_USE_BUNDLED_SDL2=OFF \
-DYUZU_USE_EXTERNAL_VULKAN_HEADERS=OFF \
-DYUZU_USE_EXTERNAL_SDL2=OFF \
-DYUZU_USE_FASTER_LD=OFF \
-DYUZU_USE_PRECOMPILED_HEADERS=OFF \
-DYUZU_USE_QT_MULTIMEDIA=ON \
-DYUZU_USE_QT_WEB_ENGINE=ON \
-DYUZU_TESTS=OFF \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
# vim: ts=2 sw=2 et: