[arch-commits] Commit in bitwarden_rs-web/repos (3 files)
Daniel M. Capella
polyzen at archlinux.org
Fri Dec 11 01:50:34 UTC 2020
Date: Friday, December 11, 2020 @ 01:50:34
Author: polyzen
Revision: 773097
archrelease: copy trunk to community-any
Added:
bitwarden_rs-web/repos/community-any/
bitwarden_rs-web/repos/community-any/PKGBUILD
(from rev 773096, bitwarden_rs-web/trunk/PKGBUILD)
bitwarden_rs-web/repos/community-any/bitwarden_rs-web.install
(from rev 773096, bitwarden_rs-web/trunk/bitwarden_rs-web.install)
--------------------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
bitwarden_rs-web.install | 12 ++++++++++++
2 files changed, 55 insertions(+)
Copied: bitwarden_rs-web/repos/community-any/PKGBUILD (from rev 773096, bitwarden_rs-web/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-12-11 01:50:34 UTC (rev 773097)
@@ -0,0 +1,43 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Markus Richter <mqus at disroot dot org>
+
+pkgname=bitwarden_rs-web
+pkgver=2.17.1
+pkgrel=1
+pkgdesc='Bitwarden web vault with the patches to make it work with bitwarden_rs'
+arch=('any')
+url=https://github.com/dani-garcia/bw_web_builds
+license=('GPL3')
+depends=('bitwarden_rs')
+makedepends=('git' 'npm' 'python2')
+replaces=('bitwarden_rs-vault')
+install=$pkgname.install
+source=("bitwarden-web::git+https://github.com/bitwarden/web.git#tag=v$pkgver"
+ 'git+https://github.com/bitwarden/jslib.git'
+ "$pkgname-v$pkgver.patch::https://raw.githubusercontent.com/dani-garcia/bw_web_builds/v$pkgver/patches/v$pkgver.patch")
+b2sums=('SKIP'
+ 'SKIP'
+ 'da88c88d7a7bb034c3307992eb3a868928961c00bb44f4ad5b3adbf51c5858b365a0592c04071d8bf011911ec4cf69ae0f6bc8160bc07491b1e5f36c43d60dd9')
+
+prepare() {
+ cd bitwarden-web
+ git submodule init
+ git config submodule.jslib.url ../jslib
+ git submodule update
+ patch --forward --strip=1 --input=../$pkgname-v$pkgver.patch
+}
+
+build() {
+ cd bitwarden-web
+ npm install
+ npm audit fix
+ npm run dist
+}
+
+package() {
+ cd bitwarden-web
+ install -d "$pkgdir"/usr/share/$pkgname
+ cp -R build/* "$pkgdir"/usr/share/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:
Copied: bitwarden_rs-web/repos/community-any/bitwarden_rs-web.install (from rev 773096, bitwarden_rs-web/trunk/bitwarden_rs-web.install)
===================================================================
--- community-any/bitwarden_rs-web.install (rev 0)
+++ community-any/bitwarden_rs-web.install 2020-12-11 01:50:34 UTC (rev 773097)
@@ -0,0 +1,12 @@
+post_install() {
+ cat << EOF
+Uncomment WEB_VAULT_FOLDER and set WEB_VAULT_ENABLED to true in your
+/etc/bitwarden_rs.env.
+
+If upgrading from the AUR package, set the new path:
+WEB_VAULT_FOLDER=/usr/share/bitwarden_rs-web
+
+Restart bitwarden_rs after configuration changes have been made:
+# systemctl restart bitwarden_rs
+EOF
+}
More information about the arch-commits
mailing list