Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Bitwarden-1.16.4
Date: Thu, 26 Sep 2019 04:02:42 +0200	[thread overview]
Message-ID: <20190926020242.AP2WIHnQW62KlA7yIR-fTF7u6w1UiYgXaZvsk7V6ZFk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14720@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

There is an updated pull request by ray851107 against master on the void-packages repository

https://github.com/ray851107/void-packages Bitwarden
https://github.com/void-linux/void-packages/pull/14720

New package: Bitwarden-1.16.4
https://github.com/bitwarden/desktop

A patch file from https://github.com/void-linux/void-packages/pull/14720.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Bitwarden-14720.patch --]
[-- Type: text/x-diff, Size: 2667 bytes --]

From 724db85180afd0262103ea274c340c391faf1ccc Mon Sep 17 00:00:00 2001
From: ray851107 <16625236+ray851107@users.noreply.github.com>
Date: Thu, 26 Sep 2019 02:09:41 +0800
Subject: [PATCH] New package: Bitwarden-1.16.4

---
 srcpkgs/Bitwarden/files/bitwarden.desktop |  9 ++++
 srcpkgs/Bitwarden/template                | 52 +++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/Bitwarden/files/bitwarden.desktop
 create mode 100644 srcpkgs/Bitwarden/template

diff --git a/srcpkgs/Bitwarden/files/bitwarden.desktop b/srcpkgs/Bitwarden/files/bitwarden.desktop
new file mode 100644
index 00000000000..80403abb20e
--- /dev/null
+++ b/srcpkgs/Bitwarden/files/bitwarden.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Bitwarden
+Exec=bitwarden %U
+Terminal=false
+Type=Application
+Icon=bitwarden
+StartupWMClass=Bitwarden
+Comment=A secure and free password manager for all of your devices.
+Categories=Utility;
diff --git a/srcpkgs/Bitwarden/template b/srcpkgs/Bitwarden/template
new file mode 100644
index 00000000000..aee9e4a8212
--- /dev/null
+++ b/srcpkgs/Bitwarden/template
@@ -0,0 +1,52 @@
+# Template file for 'Bitwarden'
+pkgname=Bitwarden
+version=1.16.4
+revision=1
+_jslib_commit=6b82cd0380d33c83e8b242713eb173d94e16e9f4
+archs="x86_64"
+wrksrc="desktop-${version}"
+hostmakedepends="git python nodejs-lts pkg-config"
+makedepends="libsecret-devel libXScrnSaver-devel"
+depends="libsecret"
+short_desc="Secure and free password manager for all of your devices"
+maintainer="ray851107 <ray851107@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://bitwarden.com"
+distfiles="
+ https://github.com/bitwarden/desktop/archive/v${version}.tar.gz
+ https://github.com/bitwarden/jslib/archive/${_jslib_commit}.tar.gz"
+checksum="
+ f947f924dd3be6102d869324249cf3506094a6c3bf55102196ecaebeecceee9f
+ 0e899a128a3c602c549a991d5d10e657b1b3b88eb4c8380598a1bd84fbd02f29"
+
+post_extract() {
+	rmdir jslib
+	mv -v ../jslib-${_jslib_commit} jslib
+}
+
+do_patch() {
+	vsed -i package.json -e 's/ && npm run sub:init//'
+}
+
+do_build() {
+	npm --prefix jslib install
+	npm install --unsafe-perm
+	npm run build
+	./node_modules/.bin/electron-builder --dir build
+}
+
+do_install() {
+	vmkdir usr/lib/Bitwarden
+	vcopy dist/linux-unpacked/* usr/lib/Bitwarden
+
+	vmkdir usr/bin
+	ln -s /usr/lib/Bitwarden/bitwarden ${DESTDIR}/usr/bin/
+
+	vmkdir usr/share/applications
+	vinstall ${FILESDIR}/bitwarden.desktop 644 usr/share/applications/
+
+	vmkdir usr/share/icons/hicolor
+	for size in 16 32 48 128 256 512; do
+		vinstall resources/icons/${size}x${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ bitwarden.png
+	done
+}

  parent reply	other threads:[~2019-09-26  2:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25 18:16 [PR PATCH] " voidlinux-github
2019-09-25 18:51 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-25 18:51 ` voidlinux-github
2019-09-26  2:02 ` voidlinux-github [this message]
2019-09-26  2:02 ` voidlinux-github
2019-09-26  2:37 ` voidlinux-github
2019-09-26  2:37 ` voidlinux-github
2019-09-26  2:37 ` voidlinux-github
2019-09-26  2:37 ` voidlinux-github
2019-09-26  2:38 ` voidlinux-github
2019-09-26  2:38 ` voidlinux-github
2019-10-10 16:00 ` voidlinux-github
2019-10-10 16:00 ` [PR PATCH] [Closed]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190926020242.AP2WIHnQW62KlA7yIR-fTF7u6w1UiYgXaZvsk7V6ZFk@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).