From 4136040b53291151bbbe4acaa106418f55ef1003 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Wed, 6 Mar 2024 17:50:47 -0300 Subject: [PATCH] Update PKGBUILD --- .SRCINFO | 2 ++ PKGBUILD | 20 ++++++++++++++------ suyu-git.install | 11 +++++++++++ 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 suyu-git.install diff --git a/.SRCINFO b/.SRCINFO index 22a5744..68e0a77 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -3,6 +3,7 @@ pkgbase = suyu-git pkgver = r27087.c15523798 pkgrel = 1 url = https://gitlab.com/suyu-emu/suyu + install = suyu-git.install arch = x86_64 license = GPL3 makedepends = boost @@ -43,6 +44,7 @@ pkgbase = suyu-git depends = vulkan-utility-libraries depends = zlib provides = suyu + conflicts = suyu-dev-git conflicts = yuzu conflicts = yuzu-early-access-appimage conflicts = yuzu-early-access-git diff --git a/PKGBUILD b/PKGBUILD index b59654f..65e2623 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,7 @@ # Maintainer: Fijxu _pkgname=suyu +_branch=master pkgname=suyu-git pkgver=r27087.c15523798 pkgrel=1 @@ -8,8 +9,9 @@ pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo S arch=(x86_64) url=https://gitlab.com/suyu-emu/suyu license=(GPL3) -provides=(suyu) -conflicts=(yuzu yuzu-early-access-appimage yuzu-early-access-git) +provides=('suyu') +conflicts=(suyu-dev-git yuzu yuzu-early-access-appimage yuzu-early-access-git) +install=$pkgname.install depends=( brotli enet @@ -54,7 +56,7 @@ makedepends=( options=(!debug) _tag=d32620fe796f9cd90e8e5660deb0fc8f4decd61f 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 @@ -129,15 +131,15 @@ build() { -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} | {}" \ + -DTITLE_BAR_FORMAT_IDLE="suyu | ${_branch}-${pkgver} {}" \ + -DTITLE_BAR_FORMAT_RUNNING="suyu | ${_branch}-${pkgver} | {}" \ -DUSE_DISCORD_PRESENCE=OFF \ -DYUZU_CHECK_SUBMODULES=OFF \ -DYUZU_DOWNLOAD_TIME_ZONE_DATA=ON \ @@ -158,6 +160,12 @@ build() { package() { DESTDIR="${pkgdir}" cmake --install build + mv ${pkgdir}/usr/bin/yuzu ${pkgdir}/usr/bin/suyu + ln -s ${pkgdir}/usr/bin/suyu ${pkgdir}/usr/bin/yuzu + mv ${pkgdir}/usr/bin/yuzu-cmd ${pkgdir}/usr/bin/suyu-cmd + ln -s ${pkgdir}/usr/bin/suyu-cmd ${pkgdir}/usr/bin/yuzu-cmd + mv ${pkgdir}/usr/bin/yuzu-room ${pkgdir}/usr/bin/suyu-room + ln -s ${pkgdir}/usr/bin/suyu-room ${pkgdir}/usr/bin/yuzu-room install -Dm644 ${_pkgname}/dist/72-yuzu-input.rules -t "${pkgdir}"/usr/lib/udev/rules.d/ } diff --git a/suyu-git.install b/suyu-git.install new file mode 100644 index 0000000..584f489 --- /dev/null +++ b/suyu-git.install @@ -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 +} +