40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Template file for 'vaultwarden-web'
|
|
pkgname=vaultwarden-web
|
|
version=2022.8.1
|
|
revision=1
|
|
_patch_ver=2022.8.0
|
|
create_wrksrc=yes
|
|
build_wrksrc="clients-web-v${version}"
|
|
hostmakedepends="git nodejs"
|
|
short_desc="Web vault builds for vaultwarden"
|
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/dani-garcia/bw_web_builds"
|
|
distfiles="https://github.com/bitwarden/clients/archive/web-v${version}.tar.gz
|
|
https://raw.githubusercontent.com/dani-garcia/bw_web_builds/master/patches/v${_patch_ver}.patch"
|
|
checksum="9dff38f13d8be047fe0fd6426bda3c409bb222b787bd6b21a3559f5d29255a92
|
|
1199bcf5edb0cad2e0fc1e839b5bdc690565d6af5b32cc1c38348f0b13c69ee9"
|
|
|
|
post_extract() {
|
|
mv v$_patch_ver.patch ${build_wrksrc}
|
|
}
|
|
|
|
post_patch() {
|
|
patch -Np1 -i v$_patch_ver.patch
|
|
}
|
|
|
|
do_configure() {
|
|
npm ci --ignore-scripts
|
|
}
|
|
|
|
do_build() {
|
|
cd apps/web
|
|
npm run dist:oss:selfhost
|
|
}
|
|
|
|
do_install() {
|
|
cd apps/web
|
|
vmkdir usr/share/webapps/vaultwarden-web
|
|
vcopy build/* usr/share/webapps/vaultwarden-web
|
|
}
|