Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] 1password: update to 8.9.12.
@ 2023-01-11 18:35 karlgrose
  2023-01-18 10:08 ` [PR PATCH] [Updated] " karlgrose
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: karlgrose @ 2023-01-11 18:35 UTC (permalink / raw)
  To: ml

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

There is a new 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: 3185 bytes --]

From 63d0d80eb10094c6108c9df02a066e372d67055c 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.12.

---
 srcpkgs/1password/INSTALL  |  6 ++++++
 srcpkgs/1password/template | 26 +++++++++++++++++++++-----
 2 files changed, 27 insertions(+), 5 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..64723fd7b385 100644
--- a/srcpkgs/1password/template
+++ b/srcpkgs/1password/template
@@ -1,6 +1,6 @@
 # Template file for '1password'
 pkgname=1password
-version=8.4.1
+version=8.9.12
 revision=1
 archs="x86_64"
 hostmakedepends="w3m gnupg"
@@ -10,12 +10,13 @@ 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"
+checksum="31fab5e119a974efc8c1ea1ebaeea2ba91c86b6be30a3289118871374380db42
+ a1f04c4c57091d04a19717079eb2d65ae0c7677dacaf1ecd1b8b9af8fb7e166a"
 _filename="1password-${version}.x64.tar.gz"
 _1passworddir="${_filename%.tar.*}"
-_license_checksum=b8f6ff9297488416f3d8063a151109ed5e8a2df6fa546856a4beaa715cbc0fda
+_license_checksum=1799c4d0c678dce26d6ae0113f496dd0f1e103abd2dbd8eb224614c2b3990068
 _gpg_key=3FEF9748469ADBE15DA7CA80AC2D62742012EA22
+_resources="opt/1Password/resources"
 system_groups="_onepassword"
 repository=nonfree
 restricted=yes
@@ -50,7 +51,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"
 }

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-27 11:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 18:35 [PR PATCH] 1password: update to 8.9.12 karlgrose
2023-01-18 10:08 ` [PR PATCH] [Updated] " karlgrose
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

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).