From: karlgrose <karlgrose@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] 1password: update to 8.9.12.
Date: Wed, 18 Jan 2023 11:08:23 +0100 [thread overview]
Message-ID: <20230118100823.JgV-z_-nHTjrmsqY-SPg37RIwNpEQXOMn_jw-V-YI_w@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41589@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
There is an updated pull request by karlgrose against master on the void-packages repository
https://github.com/karlgrose/void-packages 1password
https://github.com/void-linux/void-packages/pull/41589
1password: update to 8.9.12.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
#### Comments
- Added 1Password icons and 1password.desktop file to template
- Extended INSTALL post action to create and install custom policy file
A patch file from https://github.com/void-linux/void-packages/pull/41589.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-1password-41589.patch --]
[-- Type: text/x-diff, Size: 3834 bytes --]
From 2a01f67a2c08aa313138c8bfb42b84644020160b Mon Sep 17 00:00:00 2001
From: Karl R Grose <karlgrose@gromar.org>
Date: Tue, 10 Jan 2023 23:22:00 -0800
Subject: [PATCH] 1password: update to 8.9.13.
---
srcpkgs/1password/INSTALL | 6 +++++
srcpkgs/1password/template | 47 ++++++++++++++++++++++++++++++--------
2 files changed, 44 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/1password/INSTALL b/srcpkgs/1password/INSTALL
index 131b1fae2096..3a8529a27e3c 100644
--- a/srcpkgs/1password/INSTALL
+++ b/srcpkgs/1password/INSTALL
@@ -7,5 +7,11 @@ post)
chmod g+s opt/1Password/1Password-KeyringHelper
chown :_onepassword opt/1Password/1Password-BrowserSupport
chmod g+s opt/1Password/1Password-BrowserSupport
+ export POLICY_OWNERS
+ POLICY_OWNERS="$(cut -d: -f1,3 etc/passwd | grep -E ':[0-9]{4}$' | cut -d: -f1 | head -n 10 | sed 's/^/unix-user:/' | tr '\n' ' ')"
+ eval "cat <<EOF
+$(cat opt/1Password/com.1password.1Password.policy.tpl)
+EOF" > opt/1Password/com.1password.1Password.policy
+ install -Dm0644 opt/1Password/com.1password.1Password.policy -t usr/share/polkit-1/actions/
;;
esac
diff --git a/srcpkgs/1password/template b/srcpkgs/1password/template
index 293ac7dc4461..94c2df9aecdf 100644
--- a/srcpkgs/1password/template
+++ b/srcpkgs/1password/template
@@ -1,21 +1,35 @@
# Template file for '1password'
pkgname=1password
-version=8.4.1
+version=8.9.13
revision=1
-archs="x86_64"
+archs="x86_64 aarch64"
hostmakedepends="w3m gnupg"
short_desc="Password manager"
maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
license="custom:Proprietary"
homepage="https://www.1password.com"
-distfiles="https://downloads.1password.com/linux/tar/stable/x86_64/1password-${version}.x64.tar.gz
- https://downloads.1password.com/linux/tar/stable/x86_64/1password-${version}.x64.tar.gz.sig"
-checksum="f5c2468127c363b3a3d2fa5857b6ff0979eeaf1485c1afb114b3929c1fc4a7df
- 0739424395377f56c9528c1169ef72d6a941e21f1bc9d728481bf5de8563bf01"
-_filename="1password-${version}.x64.tar.gz"
+
+case "${XBPS_TARGET_MACHINE}" in
+ aarch64)
+ _arch="arm64"
+ checksum="cc6d61be5e5a4f84d4a138b39985e496a5f9336f2b433cd5d111fff7798476ab
+ ed569ad65833bb1f7d0df2cb734e333e87833c4061d892d82d7fc10616a0ded0"
+ ;;
+
+ x86_64)
+ _arch="x64"
+ checksum="d7c295e8a545fb15267286aeb4da9bb74e1649c1825e0410fd588dc0d9bfa00d
+ c6e849333fd12ba8f128e5f185c79b7fe9f23fe2df44e8fabf5db9f3e1be88c9"
+ ;;
+esac
+
+distfiles="https://downloads.1password.com/linux/tar/stable/${XBPS_TARGET_MACHINE}/1password-${version}.${_arch}.tar.gz
+ https://downloads.1password.com/linux/tar/stable/${XBPS_TARGET_MACHINE}/1password-${version}.${_arch}.tar.gz.sig"
+_filename="1password-${version}.${_arch}.tar.gz"
_1passworddir="${_filename%.tar.*}"
-_license_checksum=b8f6ff9297488416f3d8063a151109ed5e8a2df6fa546856a4beaa715cbc0fda
+_license_checksum=75de41c3067bbca89f9550461f95cf28b34be5099bc4694fc240ae8be3e6c6bf
_gpg_key=3FEF9748469ADBE15DA7CA80AC2D62742012EA22
+_resources="opt/1Password/resources"
system_groups="_onepassword"
repository=nonfree
restricted=yes
@@ -50,7 +64,22 @@ do_install() {
vlicense EULA
rm -f EULA eula
vcopy "*" opt/1Password
- vinstall com.1password.1Password.policy 644 usr/share/polkit-1/actions/
+
+ # Install the icons
+ for _s in 32 64 256 512; do
+ # Create xdg directory
+ vmkdir usr/share/icons/hicolor/${_s}x${_s}/apps
+
+ # Copy the 1Password icon
+ mv ${DESTDIR}/${_resources}/icons/hicolor/${_s}x${_s}/apps/1password.png \
+ ${DESTDIR}/usr/share/icons/hicolor/${_s}x${_s}/apps/1password.png
+ done
+
+ # Install the .desktop file
+ vmkdir usr/share/applications
+ mv ${DESTDIR}/${_resources}/1password.desktop \
+ ${DESTDIR}/usr/share/applications/1password.desktop
+
vinstall resources/custom_allowed_browsers 644 usr/share/doc/1password/examples/
vbin "${FILESDIR}/1password"
}
next prev parent reply other threads:[~2023-01-18 10:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 18:35 [PR PATCH] " karlgrose
2023-01-18 10:08 ` karlgrose [this message]
2023-01-28 2:39 ` [PR PATCH] [Updated] 1password: update to 8.9.13 karlgrose
2023-02-15 8:07 ` [PR PATCH] [Updated] 1password: update to 8.9.14 karlgrose
2023-02-16 17:12 ` 1password: update to 8.10.0 larsgrah
2023-02-16 21:06 ` [PR PATCH] [Updated] " karlgrose
2023-02-16 21:12 ` karlgrose
2023-03-10 6:36 ` karlgrose
2023-03-14 22:41 ` [PR PATCH] [Updated] 1password: update to 8.10.1 karlgrose
2023-04-12 19:05 ` [PR PATCH] [Updated] 1password: update to 8.10.3 karlgrose
2023-05-10 1:46 ` [PR PATCH] [Updated] 1password: update to 8.10.4 karlgrose
2023-06-01 0:01 ` [PR PATCH] [Updated] 1password: update to 8.10.6 karlgrose
2023-06-27 11:17 ` [PR PATCH] [Merged]: 1password: update to 8.10.7 Duncaen
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=20230118100823.JgV-z_-nHTjrmsqY-SPg37RIwNpEQXOMn_jw-V-YI_w@z \
--to=karlgrose@users.noreply.github.com \
--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).