blob: 05f79a1e4c76eb3039401197c950d48a9f58383e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: devome <evinedeng@hotmail.com>
pkgname=flexget-webui
pkgver=2.0.29
pkgrel=1
pkgdesc="The FlexGet Web UI"
arch=("any")
url="https://github.com/Flexget/webui"
license=("MIT")
makedepends=("yarn")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('28151e8574844b5ab826ebbb5200b3171bafe5a91e4d908ea50e0f118946058e')
options=("!strip")
build() {
export NODE_OPTIONS=--openssl-legacy-provider
cd "webui-${pkgver}"
yarn install --frozen-lockfile
yarn build
find dist -iname "*.js.map" -o -iname "*.css.map" | xargs rm -rf
}
package() {
cd "webui-${pkgver}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
find dist -type f | xargs -I {} install -Dm644 {} "${pkgdir}/usr/share/${pkgname}/v${pkgver%%.*}/"{}
}
|