aboutsummaryrefslogtreecommitdiff
path: root/apks/jellyfin-web
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-17 21:48:23 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-17 21:48:23 +0000
commit79c054a4536b9f21fa8e98513afb2cbcd799f71e (patch)
treec7ef92b79d49b9fd957903f0e8cf2e7a13acb14d /apks/jellyfin-web
parent0204e511bd3a183291c0582d51ee0f0c177754ec (diff)
downloadapkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.tar.gz
apkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.tar.bz2
apkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.zip
feat: Add jellyfin
Add jellyfin to avoid importing the whole edge repo.
Diffstat (limited to 'apks/jellyfin-web')
-rw-r--r--apks/jellyfin-web/APKBUILD28
-rw-r--r--apks/jellyfin-web/jellyfin-web.post-install6
2 files changed, 34 insertions, 0 deletions
diff --git a/apks/jellyfin-web/APKBUILD b/apks/jellyfin-web/APKBUILD
new file mode 100644
index 0000000..69e01e0
--- /dev/null
+++ b/apks/jellyfin-web/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
+pkgname=jellyfin-web
+pkgver=10.8.5
+pkgrel=0
+pkgdesc="Web Client for Jellyfin"
+url="https://jellyfin.org/"
+# armv7: oom
+arch="x86_64 aarch64"
+options="!check net" # no tests
+license="GPL-2.0-only"
+install="$pkgname.post-install"
+depends="jellyfin"
+makedepends="npm"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v$pkgver.tar.gz"
+
+build() {
+ npm ci --no-audit
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/lib/jellyfin/jellyfin-web
+
+ cp -r "$builddir"/dist/* "$pkgdir"/usr/lib/jellyfin/jellyfin-web
+}
+
+sha512sums="
+5953b1007cc771542aaad907ecc292b311e457e625c2e9d4e0246147488651ea556e8c3973fd603760326173db14939e4ce728c8f9fc563a7f3ab740453e60d8 jellyfin-web-10.8.5.tar.gz
+"
diff --git a/apks/jellyfin-web/jellyfin-web.post-install b/apks/jellyfin-web/jellyfin-web.post-install
new file mode 100644
index 0000000..a6e6942
--- /dev/null
+++ b/apks/jellyfin-web/jellyfin-web.post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+printf " *\n * The default jellyfin configuration does not enable the web ui.\n"
+printf " * Remove the '--nowebclient' option from /etc/conf.d/jellyfin to enable it.\n *\n"
+
+exit 0