vaultwarden-web: update to 2022.11.1.
This commit is contained in:
parent
3881843899
commit
e720191df2
|
@ -1,42 +1,15 @@
|
|||
# Template file for 'vaultwarden-web'
|
||||
pkgname=vaultwarden-web
|
||||
version=2022.10.2
|
||||
version=2022.11.1
|
||||
revision=1
|
||||
_patch_ver=2022.10.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="6ec4fcae9ce26ecf55647f58598cbb4c4c0b6b093053f9d208781a4fc0c81fda
|
||||
83484ec2106cf8b9d2c52b4284e3f3b876a5b9e9e0767eda69a1987304ddbaad"
|
||||
|
||||
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() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*) export NODE_OPTIONS="--max-old-space-size=2048" ;;
|
||||
esac
|
||||
cd apps/web
|
||||
npm run dist:oss:selfhost
|
||||
}
|
||||
distfiles="https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz"
|
||||
checksum=9dddf6434b93b27add54f0ded58825be483641cc202d1fb1d1d16f2920fca3c2
|
||||
|
||||
do_install() {
|
||||
cd apps/web
|
||||
vmkdir usr/share/webapps/vaultwarden-web
|
||||
vcopy build/* usr/share/webapps/vaultwarden-web
|
||||
vcopy . usr/share/webapps/vaultwarden-web
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue