Update PKGBUILD

This commit is contained in:
Fijxu 2024-03-06 17:50:47 -03:00
parent 5214e44963
commit 4136040b53
3 changed files with 27 additions and 6 deletions

View file

@ -3,6 +3,7 @@ pkgbase = suyu-git
pkgver = r27087.c15523798 pkgver = r27087.c15523798
pkgrel = 1 pkgrel = 1
url = https://gitlab.com/suyu-emu/suyu url = https://gitlab.com/suyu-emu/suyu
install = suyu-git.install
arch = x86_64 arch = x86_64
license = GPL3 license = GPL3
makedepends = boost makedepends = boost
@ -43,6 +44,7 @@ pkgbase = suyu-git
depends = vulkan-utility-libraries depends = vulkan-utility-libraries
depends = zlib depends = zlib
provides = suyu provides = suyu
conflicts = suyu-dev-git
conflicts = yuzu conflicts = yuzu
conflicts = yuzu-early-access-appimage conflicts = yuzu-early-access-appimage
conflicts = yuzu-early-access-git conflicts = yuzu-early-access-git

View file

@ -1,6 +1,7 @@
# Maintainer: Fijxu <fijxu [at] nadeko [dot] net> # Maintainer: Fijxu <fijxu [at] nadeko [dot] net>
_pkgname=suyu _pkgname=suyu
_branch=master
pkgname=suyu-git pkgname=suyu-git
pkgver=r27087.c15523798 pkgver=r27087.c15523798
pkgrel=1 pkgrel=1
@ -8,8 +9,9 @@ pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo S
arch=(x86_64) arch=(x86_64)
url=https://gitlab.com/suyu-emu/suyu url=https://gitlab.com/suyu-emu/suyu
license=(GPL3) license=(GPL3)
provides=(suyu) provides=('suyu')
conflicts=(yuzu yuzu-early-access-appimage yuzu-early-access-git) conflicts=(suyu-dev-git yuzu yuzu-early-access-appimage yuzu-early-access-git)
install=$pkgname.install
depends=( depends=(
brotli brotli
enet enet
@ -54,7 +56,7 @@ makedepends=(
options=(!debug) options=(!debug)
_tag=d32620fe796f9cd90e8e5660deb0fc8f4decd61f _tag=d32620fe796f9cd90e8e5660deb0fc8f4decd61f
source=( 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/arsenm/sanitizers-cmake.git
git+https://github.com/yhirose/cpp-httplib.git git+https://github.com/yhirose/cpp-httplib.git
git+https://github.com/arun11299/cpp-jwt.git git+https://github.com/arun11299/cpp-jwt.git
@ -129,15 +131,15 @@ build() {
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_REPOSITORY=suyu-emu/suyu \ -DBUILD_REPOSITORY=suyu-emu/suyu \
-DBUILD_TAG=${pkgver} \ -DBUILD_TAG=${_branch}-${pkgver} \
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \ -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
-DENABLE_QT6=OFF \ -DENABLE_QT6=OFF \
-DENABLE_QT_TRANSLATION=ON \ -DENABLE_QT_TRANSLATION=ON \
-DENABLE_SDL2=ON \ -DENABLE_SDL2=ON \
-DENABLE_WEB_SERVICE=ON \ -DENABLE_WEB_SERVICE=ON \
-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON \ -DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON \
-DTITLE_BAR_FORMAT_IDLE="suyu | ${pkgver} {}" \ -DTITLE_BAR_FORMAT_IDLE="suyu | ${_branch}-${pkgver} {}" \
-DTITLE_BAR_FORMAT_RUNNING="suyu | ${pkgver} | {}" \ -DTITLE_BAR_FORMAT_RUNNING="suyu | ${_branch}-${pkgver} | {}" \
-DUSE_DISCORD_PRESENCE=OFF \ -DUSE_DISCORD_PRESENCE=OFF \
-DYUZU_CHECK_SUBMODULES=OFF \ -DYUZU_CHECK_SUBMODULES=OFF \
-DYUZU_DOWNLOAD_TIME_ZONE_DATA=ON \ -DYUZU_DOWNLOAD_TIME_ZONE_DATA=ON \
@ -158,6 +160,12 @@ build() {
package() { package() {
DESTDIR="${pkgdir}" cmake --install build 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/ install -Dm644 ${_pkgname}/dist/72-yuzu-input.rules -t "${pkgdir}"/usr/lib/udev/rules.d/
} }

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
}