arch-pkgs/jellyfin-web/PKGBUILD

35 lines
837 B
Text
Raw Normal View History

2021-09-22 07:31:32 +00:00
# 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: