Skip to content

Instantly share code, notes, and snippets.

@kyujin-cho
Created January 6, 2023 11:41
Show Gist options
  • Save kyujin-cho/941dd98362b21764a58bc1c047dc8ea5 to your computer and use it in GitHub Desktop.
Save kyujin-cho/941dd98362b21764a58bc1c047dc8ea5 to your computer and use it in GitHub Desktop.
1Password
diff --git a/PKGBUILD b/PKGBUILD
index 413c1e5..1819232 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,25 @@
pkgname=1password
_tarver=8.9.10
-_tar="1password-${_tarver}.x64.tar.gz"
+_tar="1password-latest.tar.gz"
pkgver=${_tarver//-/_}
pkgrel=43
conflicts=('1password-beta' '1password-beta-bin')
pkgdesc="Password manager and secure wallet"
-arch=('x86_64')
+arch=('aarch64')
url='https://1password.com'
license=('LicenseRef-1Password-Proprietary')
options=(!strip)
install="1password.install"
-source=(https://downloads.1password.com/linux/tar/stable/${CARCH}/${_tar}{,.sig})
-sha256sums=('6a86b4d16e73bd941e1ca77612acabc65e59d4fc0b307739964314b242e20fbe'
- 'a62ffa510bdb3da663ea470f67d02756c2e9865bb1bc7cd3ffd7c06631a08889'
-)
+source=(https://downloads.1password.com/linux/tar/stable/aarch64/1password-latest.tar.gz)
+sha256sums=('66deb8506288dfe0dac92e973fb8d313ea71bf9dad51465b5078aece3726d492')
validpgpkeys=('3FEF9748469ADBE15DA7CA80AC2D62742012EA22')
package() {
depends=('hicolor-icon-theme' 'libgtk-3.so=0' 'nss')
# Go to source directory
- cd "1password-${_tarver}.x64"
+ cd "1password-${_tarver}.arm64"
# Install icons
resolutions=(32x32 64x64 256x256 512x512)
@@ -49,7 +47,7 @@ EOF" > ./com.1password.1Password.policy
# Move package contents to /opt/1Password
cd "${srcdir}"
install -dm0755 "${pkgdir}"/opt
- mv "1password-${_tarver}.x64" "${pkgdir}/opt/1Password"
+ mv "1password-${_tarver}.arm64" "${pkgdir}/opt/1Password"
# Cleanup un-needed files
rm "${pkgdir}"/opt/1Password/com.1password.1Password.policy "${pkgdir}"/opt/1Password/com.1password.1Password.policy.tpl "${pkgdir}"/opt/1Password/install_biometrics_policy.sh
@kyujin-cho
Copy link
Author

git clone https://aur.archlinux.org/1password.git
cd 1password
curl -L https://gist.github.com/kyujin-cho/941dd98362b21764a58bc1c047dc8ea5/raw/7c562db8bb4ae7c164d647511cca44f9c9ceab3d/1password.patch > diff.patch
git patch diff.patch
makepkg -si

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment