aboutsummaryrefslogtreecommitdiff
path: root/dist/packaging/arch/eglantine-git/PKGBUILD
diff options
context:
space:
mode:
authorcirakg <cirakg@cirakg.xyz>2026-11-03 21:58:24 +0100
committercirakg <cirakg@cirakg.xyz>2026-11-03 21:58:24 +0100
commitcdfb1ae93444c0aa02dfe592af36d70ab36549fd (patch)
tree2fa8d7062d907d5ab8d85d64c66be87ea4cdf0d1 /dist/packaging/arch/eglantine-git/PKGBUILD
parent51341ec09b25de1d9b01d0c00ee828dd5b861d5c (diff)
parent4383b9787afbf6c63291bf803c8330afb4f21a16 (diff)
Merge upstream Djihads80/Eglantine nx2 into nx2HEADnx2
# Conflicts: # .github/workflows/release-binaries.yml
Diffstat (limited to 'dist/packaging/arch/eglantine-git/PKGBUILD')
-rw-r--r--dist/packaging/arch/eglantine-git/PKGBUILD78
1 files changed, 78 insertions, 0 deletions
diff --git a/dist/packaging/arch/eglantine-git/PKGBUILD b/dist/packaging/arch/eglantine-git/PKGBUILD
new file mode 100644
index 0000000000..2c536e7b98
--- /dev/null
+++ b/dist/packaging/arch/eglantine-git/PKGBUILD
@@ -0,0 +1,78 @@
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+pkgname=eglantine-git
+pkgver=0.r0.g0000000
+pkgrel=1
+pkgdesc='Nintendo Switch emulator (development branch)'
+arch=('x86_64')
+url='https://github.com/Djihads80/Eglantine'
+license=('GPL-3.0-or-later')
+depends=(
+ 'enet'
+ 'ffmpeg'
+ 'libusb'
+ 'opus'
+ 'openssl'
+ 'qt6-base'
+ 'qt6-charts'
+ 'sdl3'
+ 'vulkan-icd-loader'
+)
+makedepends=(
+ 'boost'
+ 'cmake'
+ 'git'
+ 'glslang'
+ 'libzip'
+ 'lz4'
+ 'ninja'
+ 'nlohmann-json'
+ 'opus'
+ 'qt6-base'
+ 'qt6-charts'
+ 'spirv-headers'
+ 'spirv-tools'
+ 'vulkan-headers'
+ 'vulkan-utility-libraries'
+ 'xbyak'
+ 'zlib'
+ 'zstd'
+)
+optdepends=(
+ 'qt6-wayland: native Wayland support'
+)
+provides=('eglantine')
+conflicts=('eglantine')
+source=("eglantine::git+https://github.com/Djihads80/Eglantine.git#branch=nx2")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/eglantine"
+ printf '0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
+}
+
+build() {
+ cmake -S "$srcdir/eglantine" -B "$srcdir/build" -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DENABLE_QT=ON \
+ -DENABLE_UPDATE_CHECKER=OFF \
+ -DYUZU_CMD=ON \
+ -DYUZU_ROOM=OFF \
+ -DYUZU_USE_BUNDLED_QT=OFF \
+ -DYUZU_USE_BUNDLED_SDL3=OFF \
+ -DYUZU_USE_BUNDLED_FFMPEG=OFF \
+ -DYUZU_TESTS=OFF \
+ -DBUILD_TESTING=OFF
+ cmake --build "$srcdir/build" --parallel
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install "$srcdir/build"
+
+ # The desktop entry uses the Eglantine icon name; the upstream install uses
+ # the older Eden filename, so install an alias that matches the desktop file.
+ install -Dm644 "$srcdir/eglantine/dist/dev.eden_emu.eden.svg" \
+ "$pkgdir/usr/share/icons/hicolor/scalable/apps/dev.eglantine.eglantine.svg"
+}