From 79296e5f93cc67097e7ab77bf5ef44d8e14c3801 Mon Sep 17 00:00:00 2001
From: Carlo Landmeter <clandmeter@alpinelinux.org>
Date: Mon, 3 Feb 2025 14:46:58 +0100
Subject: [PATCH] testing/incus-ui-canonical: new aport

---
 testing/incus-ui-canonical/APKBUILD           | 34 +++++++++++++++++++
 .../change-termminal-shell-sh.patch           | 11 ++++++
 2 files changed, 45 insertions(+)
 create mode 100644 testing/incus-ui-canonical/APKBUILD
 create mode 100644 testing/incus-ui-canonical/change-termminal-shell-sh.patch

diff --git a/testing/incus-ui-canonical/APKBUILD b/testing/incus-ui-canonical/APKBUILD
new file mode 100644
index 000000000000..d650243b1d66
--- /dev/null
+++ b/testing/incus-ui-canonical/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+maintainer="Carlo Landmeter <clandmeter@alpinelinux.org>"
+pkgname=incus-ui-canonical
+pkgver=0.14.6
+pkgrel=0
+pkgdesc="lxd-ui rebranded to incus"
+url="https://github.com/zabbly/incus-ui-canonical"
+arch="noarch !s390x !x86 !ppc64le !loongarch64 !riscv64" # FTBFS due to yarn
+license="GPL-3.0-only"
+makedepends="git yarn npm"
+options="!check"
+source="$url/archive/refs/tags/incus-$pkgver.tar.gz
+	change-termminal-shell-sh.patch
+	"
+builddir="$srcdir/$pkgname-incus-$pkgver"
+
+prepare() {
+	default_prepare
+	yarn install --frozen-lockfile --ignore-scripts
+}
+
+build() {
+	NODE_ENV=production yarn build
+}
+
+package() {
+	mkdir -p "$pkgdir"/usr/share
+	mv "$builddir"/build/ui "$pkgdir"/usr/share/incus-ui
+}
+
+sha512sums="
+ded0677f3919557d4cf84709b26d8e11c205a441defcdd539a907792bee78e2c38603fbb207928cbc56e80373ab9935955fc372eff8d47a205c98d62e62ebb63  incus-0.14.6.tar.gz
+ce2f881f089218ae3ff1bb7a639ff18fd38906643ef02564349f1fac30eea661e32d30b9f133139f5cd7fdcf473b979ec3712cc668ef077bc8f36691f65d29f1  change-termminal-shell-sh.patch
+"
diff --git a/testing/incus-ui-canonical/change-termminal-shell-sh.patch b/testing/incus-ui-canonical/change-termminal-shell-sh.patch
new file mode 100644
index 000000000000..0e06a3cf4f44
--- /dev/null
+++ b/testing/incus-ui-canonical/change-termminal-shell-sh.patch
@@ -0,0 +1,11 @@
+--- ./src/pages/instances/InstanceTerminal.tsx.orig
++++ ./src/pages/instances/InstanceTerminal.tsx
+@@ -33,7 +33,7 @@
+ };
+ 
+ export const defaultPayload: TerminalConnectPayload = {
+-  command: "bash",
++  command: "sh",
+   environment: [
+     {
+       key: "TERM",
-- 
GitLab