Compare commits

...

6 commits
dev ... master

Author SHA1 Message Date
Fijxu 8f3919b367
upgpkg: master-1 2024-03-10 23:38:08 -03:00
Fijxu 2272837db9 Add empty .gitlab-ci.yml 2024-03-09 22:55:57 +00:00
Fijxu 5b591b6a0a
fix: Remove mv commands 2024-03-09 18:19:21 -03:00
Fijxu 3078e9c0c5
fix: Use -DSUYU variables, enable DiscordRPC and add RapidJSON. 2024-03-09 17:46:44 -03:00
Fijxu 35c2486da1
Fix: add Catch2 2024-03-09 16:18:50 -03:00
Fijxu 4136040b53 Update PKGBUILD 2024-03-06 17:50:47 -03:00
4 changed files with 54 additions and 36 deletions

View file

@ -1,10 +1,12 @@
pkgbase = suyu-git
pkgdesc = suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (master branch)
pkgver = r27087.c15523798
pkgver = r27048.f7c0931e3c
pkgrel = 1
url = https://gitlab.com/suyu-emu/suyu
install = suyu-git.install
arch = x86_64
license = GPL3
license = GPL-3.0-or-later
makedepends = brotli
makedepends = boost
makedepends = clang
makedepends = cmake
@ -18,8 +20,11 @@ pkgbase = suyu-git
makedepends = shaderc
makedepends = spirv-headers
makedepends = vulkan-headers
depends = brotli
makedepends = vulkan-utility-libraries
makedepends = catch2
makedepends = rapidjson
depends = enet
depends = llvm-libs
depends = gcc-libs
depends = glibc
depends = hicolor-icon-theme
@ -31,7 +36,6 @@ pkgbase = suyu-git
depends = libopus.so
depends = libspeexdsp.so
depends = libssl.so
depends = libswscale.so
depends = libusb-1.0.so
depends = libva.so
depends = libzstd.so
@ -40,13 +44,10 @@ pkgbase = suyu-git
depends = qt5-multimedia
depends = qt5-webengine
depends = sdl2
depends = vulkan-utility-libraries
depends = zlib
provides = suyu
conflicts = yuzu
conflicts = yuzu-early-access-appimage
conflicts = yuzu-early-access-git
options = !debug
options = lto
source = git+https://gitlab.com/suyu-emu/suyu.git#branch=master
source = git+https://github.com/arsenm/sanitizers-cmake.git
source = git+https://github.com/yhirose/cpp-httplib.git

0
.gitlab-ci.yml Normal file
View file

View file

@ -1,18 +1,19 @@
# Maintainer: Fijxu <fijxu [at] nadeko [dot] net>
_pkgname=suyu
_branch=master
pkgname=suyu-git
pkgver=r27087.c15523798
pkgver=r27048.f7c0931e3c
pkgrel=1
pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (master branch)"
arch=(x86_64)
url=https://gitlab.com/suyu-emu/suyu
license=(GPL3)
provides=(suyu)
conflicts=(yuzu yuzu-early-access-appimage yuzu-early-access-git)
license=(GPL-3.0-or-later)
provides=('suyu')
install=$pkgname.install
depends=(
brotli
enet
llvm-libs
gcc-libs
glibc
hicolor-icon-theme
@ -24,7 +25,6 @@ depends=(
libopus.so
libspeexdsp.so
libssl.so
libswscale.so
libusb-1.0.so
libva.so
libzstd.so
@ -33,10 +33,10 @@ depends=(
qt5-multimedia
qt5-webengine
sdl2
vulkan-utility-libraries
zlib
)
makedepends=(
brotli
boost
clang
cmake
@ -50,11 +50,13 @@ makedepends=(
shaderc
spirv-headers
vulkan-headers
vulkan-utility-libraries
catch2
rapidjson
)
options=(!debug)
_tag=d32620fe796f9cd90e8e5660deb0fc8f4decd61f
options=(!debug lto)
source=(
git+https://gitlab.com/suyu-emu/suyu.git#branch=master
git+https://gitlab.com/suyu-emu/suyu.git#branch=${_branch}
git+https://github.com/arsenm/sanitizers-cmake.git
git+https://github.com/yhirose/cpp-httplib.git
git+https://github.com/arun11299/cpp-jwt.git
@ -124,41 +126,45 @@ prepare() {
}
build() {
if [[ $CXXFLAGS == *"-flto"* ]]; then
flags+=("-DSUYU_ENABLE_LTO=ON")
fi
export CXXFLAGS+=' -Wno-switch'
cmake -S suyu -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_REPOSITORY=suyu-emu/suyu \
-DBUILD_TAG=${pkgver} \
-DBUILD_TAG=${_branch}-${pkgver} \
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
-DENABLE_QT6=OFF \
-DENABLE_QT_TRANSLATION=ON \
-DENABLE_SDL2=ON \
-DENABLE_WEB_SERVICE=ON \
-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON \
-DTITLE_BAR_FORMAT_IDLE="suyu | ${pkgver} {}" \
-DTITLE_BAR_FORMAT_RUNNING="suyu | ${pkgver} | {}" \
-DUSE_DISCORD_PRESENCE=OFF \
-DYUZU_CHECK_SUBMODULES=OFF \
-DYUZU_DOWNLOAD_TIME_ZONE_DATA=ON \
-DYUZU_USE_BUNDLED_FFMPEG=OFF \
-DYUZU_USE_BUNDLED_QT=OFF \
-DYUZU_USE_BUNDLED_SDL2=OFF \
-DYUZU_USE_EXTERNAL_VULKAN_HEADERS=OFF \
-DYUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES=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 \
-DTITLE_BAR_FORMAT_IDLE="suyu | ${_branch}-${pkgver} {}" \
-DTITLE_BAR_FORMAT_RUNNING="suyu | ${_branch}-${pkgver} | {}" \
-DUSE_DISCORD_PRESENCE=ON \
-DSUYU_CHECK_SUBMODULES=OFF \
-DSUYU_DOWNLOAD_TIME_ZONE_DATA=ON \
-DSUYU_USE_BUNDLED_FFMPEG=OFF \
-DSUYU_USE_BUNDLED_QT=OFF \
-DSUYU_USE_BUNDLED_SDL2=OFF \
-DSUYU_USE_EXTERNAL_VULKAN_HEADERS=OFF \
-DSUYU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES=OFF \
-DSUYU_USE_EXTERNAL_SDL2=OFF \
-DSUYU_USE_FASTER_LD=ON \
-DSUYU_USE_PRECOMPILED_HEADERS=OFF \
-DSUYU_USE_QT_MULTIMEDIA=ON \
-DSUYU_USE_QT_WEB_ENGINE=ON \
-DSUYU_TESTS=OFF \
"${flags[@]}" \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 ${_pkgname}/dist/72-yuzu-input.rules -t "${pkgdir}"/usr/lib/udev/rules.d/
install -Dm644 ${_pkgname}/dist/72-suyu-input.rules -t "${pkgdir}"/usr/lib/udev/rules.d/
}
# vim: ts=2 sw=2 et:

11
suyu-git.install Normal file
View file

@ -0,0 +1,11 @@
pre_install() {
cat << EOF
==> WARNING: suyu uses a completly different directory to store their data.
You will need to copy all the files from the ~/.local/share/yuzu directory to ~/.local/share/suyu
You can do it using this command: mkdir -p ~/.local/share/suyu && cp -ra ~/.local/share/yuzu/* ~/.local/share/suyu/*
EOF
}