From fac92ac654ce7f6cfb62a0332b60fc96e9816806 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Wed, 22 Sep 2021 07:31:32 +0000 Subject: [PATCH] addpkg: jellyfin-web 10.7.7-1 --- jellyfin-web/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 jellyfin-web/PKGBUILD diff --git a/jellyfin-web/PKGBUILD b/jellyfin-web/PKGBUILD new file mode 100644 index 0000000..cf28a30 --- /dev/null +++ b/jellyfin-web/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: + +pkgname=jellyfin-web +pkgver=10.7.7 +pkgrel=1 +pkgdesc='Jellyfin web client' +arch=('any') +url='https://jellyfin.org' +_url='https://github.com/jellyfin/jellyfin-web' +license=('GPL2' 'GPL3') +makedepends=('yarn' 'git') +source=("$pkgname-$pkgver.tar.gz::$_url/archive/v$pkgver.tar.gz") +b2sums=('7af7d8a464513f1c5aff51fd69737920795ed64cc0e4e1fe3d0d4457842aeb5f6633a4e633c32aa1fb28e05c727bd9421df44dce20c616cddd7cb0849158e643') + +build(){ + cd "$pkgname-$pkgver" + #local NPM_FLAGS=(--no-audit --no-fund --no-update-notifier) + + # install dependencies + #npm install "${NPM_FLAGS[@]}" + yarn install + + # compile web application + #npm ci "${NPM_FLAGS[@]}" + yarn build:production +} + +package() { + cd "$pkgname-$pkgver" + install -vd "$pkgdir/usr/share/$pkgname" + cp -vr dist/* "$pkgdir/usr/share/$pkgname" +} + +# vim: ts=2 sw=2 et: