Skip to content

Commit

Permalink
updpatch: bitwarden-cli 2024.11.0-3
Browse files Browse the repository at this point in the history
Arch upstream uses system libargon2 now.
  • Loading branch information
hack3ric authored and felixonmars committed Nov 26, 2024
1 parent 4ad4440 commit 6ae20bf
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions bitwarden-cli/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
--- PKGBUILD
+++ PKGBUILD
@@ -20,6 +20,8 @@ prepare() {
@@ -22,6 +22,9 @@ prepare() {
export npm_config_build_from_source=true
export npm_config_cache="$srcdir/npm_cache"

+ sed -i '/postinstall/d' apps/desktop/package.json
+ sed -i '/electron/d' package.json
+
npm ci
patch -p1 -i "$srcdir/system-libargon2.patch"
}

@@ -34,6 +36,9 @@ build() {
package() {
cd bitwarden/apps/cli
npm install --production -g --prefix "$pkgdir"/usr $(npm pack . | tail -1)
+
+ # Clean up the build dir of argon2 so that we won't end up packaging these rubbish.
+ rm -rf "$pkgdir"/usr/lib/node_modules/@bitwarden/cli/node_modules/argon2/build-tmp-napi-v3/

# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.

0 comments on commit 6ae20bf

Please sign in to comment.