1password-cli
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
pkgbase = 1password-cli
|
||||
pkgdesc = 1Password command line tool
|
||||
pkgver = 2.34.0
|
||||
pkgrel = 1
|
||||
url = https://app-updates.agilebits.com/product_history/CLI2
|
||||
install = 1password-cli.install
|
||||
arch = x86_64
|
||||
arch = i686
|
||||
arch = arm
|
||||
arch = armv6h
|
||||
arch = aarch64
|
||||
license = custom
|
||||
options = !strip
|
||||
options = !emptydirs
|
||||
validpgpkeys = 3FEF9748469ADBE15DA7CA80AC2D62742012EA22
|
||||
source_x86_64 = https://cache.agilebits.com/dist/1P/op2/pkg/v2.34.0/op_linux_amd64_v2.34.0.zip
|
||||
sha256sums_x86_64 = 198b05dcf9a0972778ce5a4e262c459979b0c837257b5da65e2fba6187734226
|
||||
source_i686 = https://cache.agilebits.com/dist/1P/op2/pkg/v2.34.0/op_linux_386_v2.34.0.zip
|
||||
sha256sums_i686 = aeaa7e169298ef5145c67028de769af6aef0fe61487cb989c7033e6fa99c01a4
|
||||
source_arm = https://cache.agilebits.com/dist/1P/op2/pkg/v2.34.0/op_linux_arm_v2.34.0.zip
|
||||
sha256sums_arm = 87174416dc60bfa67d81fdcfd513b830d27c1b15b72bbaf740970a87addecf7d
|
||||
source_armv6h = https://cache.agilebits.com/dist/1P/op2/pkg/v2.34.0/op_linux_arm_v2.34.0.zip
|
||||
sha256sums_armv6h = 87174416dc60bfa67d81fdcfd513b830d27c1b15b72bbaf740970a87addecf7d
|
||||
source_aarch64 = https://cache.agilebits.com/dist/1P/op2/pkg/v2.34.0/op_linux_arm64_v2.34.0.zip
|
||||
sha256sums_aarch64 = 7b5c361a23e738a3969cf676960f4843af4aa9aa68dbec23d18a9134da428ba3
|
||||
|
||||
pkgname = 1password-cli
|
||||
@@ -1,10 +0,0 @@
|
||||
# makepkg directories
|
||||
pkg/
|
||||
src/
|
||||
|
||||
# built packages
|
||||
*.tar.xz
|
||||
*.tar.zst
|
||||
|
||||
# source files
|
||||
*.zip
|
||||
@@ -1,13 +0,0 @@
|
||||
post_install() {
|
||||
if [ $(getent group onepassword-cli) ]; then
|
||||
: # no-op
|
||||
else
|
||||
groupadd onepassword-cli
|
||||
fi
|
||||
chgrp onepassword-cli /usr/bin/op
|
||||
chmod g+s /usr/bin/op
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
# Maintainer: slurpee <aur@lylat.io>
|
||||
# Contributors: Felix Seidel, Claudia Pellegrino, Liu Yuxuan
|
||||
|
||||
pkgname=1password-cli
|
||||
pkgver=2.34.0
|
||||
pkgrel=1
|
||||
pkgdesc="1Password command line tool"
|
||||
arch=('x86_64' 'i686' 'arm' 'armv6h' 'aarch64')
|
||||
url="https://app-updates.agilebits.com/product_history/CLI2"
|
||||
license=('custom')
|
||||
options=('!strip' '!emptydirs')
|
||||
install=${pkgname}.install
|
||||
validpgpkeys=('3FEF9748469ADBE15DA7CA80AC2D62742012EA22')
|
||||
|
||||
source_x86_64=("https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/op_linux_amd64_v${pkgver}.zip")
|
||||
source_i686=("https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/op_linux_386_v${pkgver}.zip")
|
||||
source_arm=("https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/op_linux_arm_v${pkgver}.zip")
|
||||
source_armv6h=("${source_arm}")
|
||||
source_aarch64=("https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/op_linux_arm64_v${pkgver}.zip")
|
||||
|
||||
sha256sums_x86_64=('198b05dcf9a0972778ce5a4e262c459979b0c837257b5da65e2fba6187734226')
|
||||
sha256sums_i686=('aeaa7e169298ef5145c67028de769af6aef0fe61487cb989c7033e6fa99c01a4')
|
||||
sha256sums_arm=('87174416dc60bfa67d81fdcfd513b830d27c1b15b72bbaf740970a87addecf7d')
|
||||
sha256sums_armv6h=("${sha256sums_arm}")
|
||||
sha256sums_aarch64=('7b5c361a23e738a3969cf676960f4843af4aa9aa68dbec23d18a9134da428ba3')
|
||||
|
||||
check() {
|
||||
if (( ! SKIPPGPCHECK )); then
|
||||
gpg --verify ${srcdir}/op.sig ${srcdir}/op
|
||||
fi
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 op "${pkgdir}"/usr/bin/op
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Usage:
|
||||
# PKGVER=x.x.x ./package-update.sh
|
||||
|
||||
arch=( 'x86_64' 'i686' 'arm' 'aarch64' )
|
||||
_arch=( 'amd64' '386' 'arm' 'arm64' )
|
||||
|
||||
sed -i "s/pkgver=.*/pkgver=${PKGVER}/" PKGBUILD
|
||||
|
||||
for a in "${!arch[@]}"; do
|
||||
wget -q https://cache.agilebits.com/dist/1P/op2/pkg/v"${PKGVER}"/op_linux_"${_arch[a]}"_v"${PKGVER}".zip
|
||||
unzip -q op_linux_"${_arch[a]}"_v"${PKGVER}".zip
|
||||
if gpgv -q op.sig op > /dev/null 2>&1; then
|
||||
sha256=$(sha256sum op_linux_"${_arch[a]}"_v"${PKGVER}".zip | awk '{print $1}')
|
||||
sed -i "s/sha256sums_${arch[a]}=.*/sha256sums_${arch[a]}=\('${sha256}'\)/" PKGBUILD
|
||||
else
|
||||
echo "Bad Signature for op_linux_${arch[a]}_v${PKGVER}.zip."
|
||||
fi
|
||||
rm op*
|
||||
done
|
||||
Reference in New Issue
Block a user