upgpkg: dev-2

This commit is contained in:
Fijxu 2024-03-11 00:29:18 -03:00
parent d393c52f0d
commit cca68da715
Signed by: Fijxu
SSH key fingerprint: SHA256:NEA9cr0sNsA6h9p9u4xJATHKUkhL1wfRIBC7o75eG9c
2 changed files with 14 additions and 13 deletions

View file

@ -1,12 +1,11 @@
pkgbase = suyu-dev-git pkgbase = suyu-dev-git
pkgdesc = suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (dev branch) pkgdesc = suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (dev branch)
pkgver = r27175.bd5bdbe6c7 pkgver = r27175.bd5bdbe6c
pkgrel = 1 pkgrel = 1
url = https://gitlab.com/suyu-emu/suyu url = https://gitlab.com/suyu-emu/suyu
install = suyu-dev-git.install install = suyu-dev-git.install
arch = x86_64 arch = x86_64
license = GPL-2.0-or-later license = GPL-3.0-or-later
makedepends = brotli
makedepends = boost makedepends = boost
makedepends = clang makedepends = clang
makedepends = cmake makedepends = cmake
@ -23,6 +22,8 @@ pkgbase = suyu-dev-git
makedepends = vulkan-utility-libraries makedepends = vulkan-utility-libraries
makedepends = catch2 makedepends = catch2
makedepends = rapidjson makedepends = rapidjson
makedepends = mbedtls
depends = brotli
depends = enet depends = enet
depends = llvm-libs depends = llvm-libs
depends = gcc-libs depends = gcc-libs
@ -55,7 +56,6 @@ pkgbase = suyu-dev-git
source = git+https://github.com/mozilla/cubeb.git source = git+https://github.com/mozilla/cubeb.git
source = git+https://gitlab.com/suyu-emu/dynarmic.git source = git+https://gitlab.com/suyu-emu/dynarmic.git
source = git+https://github.com/bylaws/libadrenotools.git source = git+https://github.com/bylaws/libadrenotools.git
source = git+https://gitlab.com/suyu-emu/mbedtls.git
source = git+https://github.com/brofield/simpleini.git source = git+https://github.com/brofield/simpleini.git
source = git+https://gitlab.com/suyu-emu/sirit.git source = git+https://gitlab.com/suyu-emu/sirit.git
source = git+https://github.com/KhronosGroup/SPIRV-Headers.git source = git+https://github.com/KhronosGroup/SPIRV-Headers.git
@ -77,6 +77,5 @@ pkgbase = suyu-dev-git
b2sums = SKIP b2sums = SKIP
b2sums = SKIP b2sums = SKIP
b2sums = SKIP b2sums = SKIP
b2sums = SKIP
pkgname = suyu-dev-git pkgname = suyu-dev-git

View file

@ -3,15 +3,16 @@
_pkgname=suyu _pkgname=suyu
_branch=dev _branch=dev
pkgname=suyu-dev-git pkgname=suyu-dev-git
pkgver=r27175.bd5bdbe6c7 pkgver=r27175.bd5bdbe6c
pkgrel=1 pkgrel=1
pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (dev branch)" pkgdesc="suyu is the afterlife the world's most popular, open-source, Nintendo Switch emulator (dev branch)"
arch=(x86_64) arch=(x86_64)
url=https://gitlab.com/suyu-emu/suyu url=https://gitlab.com/suyu-emu/suyu
license=(GPL-2.0-or-later) license=(GPL-3.0-or-later)
provides=('suyu') provides=('suyu')
install=$pkgname.install install=$pkgname.install
depends=( depends=(
brotli
enet enet
llvm-libs llvm-libs
gcc-libs gcc-libs
@ -36,7 +37,6 @@ depends=(
zlib zlib
) )
makedepends=( makedepends=(
brotli
boost boost
clang clang
cmake cmake
@ -53,6 +53,7 @@ makedepends=(
vulkan-utility-libraries vulkan-utility-libraries
catch2 catch2
rapidjson rapidjson
mbedtls
) )
options=(!debug lto) options=(!debug lto)
source=( source=(
@ -63,7 +64,6 @@ source=(
git+https://github.com/mozilla/cubeb.git git+https://github.com/mozilla/cubeb.git
git+https://gitlab.com/suyu-emu/dynarmic.git git+https://gitlab.com/suyu-emu/dynarmic.git
git+https://github.com/bylaws/libadrenotools.git git+https://github.com/bylaws/libadrenotools.git
git+https://gitlab.com/suyu-emu/mbedtls.git
git+https://github.com/brofield/simpleini.git git+https://github.com/brofield/simpleini.git
git+https://gitlab.com/suyu-emu/sirit.git git+https://gitlab.com/suyu-emu/sirit.git
git+https://github.com/KhronosGroup/SPIRV-Headers.git git+https://github.com/KhronosGroup/SPIRV-Headers.git
@ -85,7 +85,6 @@ b2sums=('SKIP'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP'
'SKIP') 'SKIP')
pkgver() { pkgver() {
@ -101,7 +100,6 @@ prepare() {
git config submodule.cubeb.url "${srcdir}"/cubeb git config submodule.cubeb.url "${srcdir}"/cubeb
git config submodule.dynarmic.url "${srcdir}"/dynarmic git config submodule.dynarmic.url "${srcdir}"/dynarmic
git config submodule.libadrenotools.url "${srcdir}"/libadrenotools git config submodule.libadrenotools.url "${srcdir}"/libadrenotools
git config submodule.mbedtls.url "${srcdir}"/mbedtls
git config submodule.simpleini.url "${srcdir}"/simpleini git config submodule.simpleini.url "${srcdir}"/simpleini
git config submodule.sirit.url "${srcdir}"/sirit git config submodule.sirit.url "${srcdir}"/sirit
git config submodule.tzdb_to_nx.url "${srcdir}"/tzdb_to_nx git config submodule.tzdb_to_nx.url "${srcdir}"/tzdb_to_nx
@ -126,14 +124,17 @@ prepare() {
} }
build() { build() {
if [[ $CXXFLAGS == *"-flto"* ]]; then
flags+=("-DSUYU_ENABLE_LTO=ON")
fi
export CXXFLAGS+=' -Wno-switch' export CXXFLAGS+=' -Wno-switch'
cmake -S suyu -B build -G Ninja \ cmake -S suyu -B build -G Ninja \
-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=${_branch}-${pkgver} \ -DBUILD_TAG=${_branch}-${pkgver} \
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \ -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF \
-DENABLE_QT6=OFF \ -DENABLE_QT6=ON \
-DENABLE_QT_TRANSLATION=ON \ -DENABLE_QT_TRANSLATION=ON \
-DENABLE_SDL2=ON \ -DENABLE_SDL2=ON \
-DENABLE_WEB_SERVICE=ON \ -DENABLE_WEB_SERVICE=ON \
@ -154,6 +155,7 @@ build() {
-DSUYU_USE_QT_MULTIMEDIA=ON \ -DSUYU_USE_QT_MULTIMEDIA=ON \
-DSUYU_USE_QT_WEB_ENGINE=ON \ -DSUYU_USE_QT_WEB_ENGINE=ON \
-DSUYU_TESTS=OFF \ -DSUYU_TESTS=OFF \
"${flags[@]}" \
-Wno-dev -Wno-dev
cmake --build build cmake --build build
} }