aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srcpkgs/jellyfin-web/patches/package-json-engines.patch22
-rw-r--r--srcpkgs/jellyfin-web/template30
2 files changed, 52 insertions, 0 deletions
diff --git a/srcpkgs/jellyfin-web/patches/package-json-engines.patch b/srcpkgs/jellyfin-web/patches/package-json-engines.patch
new file mode 100644
index 00000000000..9cfdd5e62b0
--- /dev/null
+++ b/srcpkgs/jellyfin-web/patches/package-json-engines.patch
@@ -0,0 +1,22 @@
+commit 9f8248ae752009bc8ad5244dcf4c80f51f9cc866
+Author: Luca Matei Pintilie <luca@lucamatei.com>
+Date: Sat Jun 15 15:10:11 2024 +0200
+
+ package.json: allow all engines
+
+diff --git a/package.json b/package.json
+index 280a2e135..b0f9523d0 100644
+--- a/package.json
++++ b/package.json
+@@ -155,8 +155,8 @@
+ "stylelint": "stylelint \"src/**/*.{css,scss}\""
+ },
+ "engines": {
+- "node": ">=20.0.0",
+- "npm": ">=9.6.4",
++ "node": "*",
++ "npm": "*",
+ "yarn": "YARN NO LONGER USED - use npm instead."
+ }
+ }
+
diff --git a/srcpkgs/jellyfin-web/template b/srcpkgs/jellyfin-web/template
new file mode 100644
index 00000000000..3e7c3bf3e7f
--- /dev/null
+++ b/srcpkgs/jellyfin-web/template
@@ -0,0 +1,30 @@
+# Template file for 'jellyfin-web'
+pkgname=jellyfin-web
+version=10.9.4
+revision=1
+hostmakedepends="nodejs"
+depends="jellyfin"
+short_desc="Web Client for Jellyfin"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="GPL-2.0-only"
+homepage="https://jellyfin.org/"
+changelog="https://github.com/jellyfin/jellyfin-web/releases"
+distfiles="https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v${version}.tar.gz"
+checksum=fe91a946f85f8dfeda10c7b53b2575b3ebdea2bc6aa13895fdeda0f239d02f8c
+
+do_configure() {
+ npm ci --no-audit
+}
+
+do_build() {
+ npm run build:production
+}
+
+do_check() {
+ npm test
+}
+
+do_install() {
+ mkdir -p "$DESTDIR/usr/share/webapps/jellyfin-web"
+ cp -r dist/* "$DESTDIR/usr/share/webapps/jellyfin-web"
+}