New package: vaultwarden-web-2022.8.1
This commit is contained in:
parent
b218117b91
commit
4c2c9b7bf9
2 changed files with 41 additions and 0 deletions
39
srcpkgs/vaultwarden-web/template
Normal file
39
srcpkgs/vaultwarden-web/template
Normal file
|
@ -0,0 +1,39 @@
|
|||
# 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
|
||||
}
|
2
srcpkgs/vaultwarden-web/update
Normal file
2
srcpkgs/vaultwarden-web/update
Normal file
|
@ -0,0 +1,2 @@
|
|||
pkgname=bw_web
|
||||
site="https://github.com/dani-garcia/bw_web_builds/releases"
|
Loading…
Add table
Add a link
Reference in a new issue