From ef19f62012645616406e1532023ce98a22be9632 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Wed, 6 Mar 2024 17:21:31 -0300 Subject: [PATCH] Use dev branch --- .SRCINFO | 11 ++++++----- PKGBUILD | 22 +++++++++++++++------- suyu-dev-git.install | 11 +++++++++++ 3 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 suyu-dev-git.install diff --git a/.SRCINFO b/.SRCINFO index 22a5744..92f4b3b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,9 @@ -pkgbase = suyu-git - pkgdesc = suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (master branch) - pkgver = r27087.c15523798 +pkgbase = suyu-dev-git + pkgdesc = suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (dev branch) + pkgver = r27098.b92e62988 pkgrel = 1 url = https://gitlab.com/suyu-emu/suyu + install = suyu-dev-git.install arch = x86_64 license = GPL3 makedepends = boost @@ -47,7 +48,7 @@ pkgbase = suyu-git conflicts = yuzu-early-access-appimage conflicts = yuzu-early-access-git options = !debug - source = git+https://gitlab.com/suyu-emu/suyu.git#branch=master + source = git+https://gitlab.com/suyu-emu/suyu.git#branch=dev source = git+https://github.com/arsenm/sanitizers-cmake.git source = git+https://github.com/yhirose/cpp-httplib.git source = git+https://github.com/arun11299/cpp-jwt.git @@ -78,4 +79,4 @@ pkgbase = suyu-git b2sums = SKIP b2sums = SKIP -pkgname = suyu-git +pkgname = suyu-dev-git diff --git a/PKGBUILD b/PKGBUILD index b59654f..8f6694d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,16 @@ # Maintainer: Fijxu _pkgname=suyu -pkgname=suyu-git -pkgver=r27087.c15523798 +_branch=dev +pkgname=suyu-dev-git +pkgver=r27098.b92e62988 pkgrel=1 -pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (master branch)" +pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (dev branch)" arch=(x86_64) url=https://gitlab.com/suyu-emu/suyu license=(GPL3) provides=(suyu) +install=$pkgname.install conflicts=(yuzu yuzu-early-access-appimage yuzu-early-access-git) depends=( brotli @@ -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-dev-git.install b/suyu-dev-git.install new file mode 100644 index 0000000..9addba5 --- /dev/null +++ b/suyu-dev-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 +} +