Create shared / fast track for certain packages
This commit is contained in:
253 files changed
+566
-458
No files matched your search
@@ -0,0 +1,27 @@
|
||||
pkgbase = 1password-cli
|
||||
pkgdesc = 1Password command line tool
|
||||
pkgver = 2.32.0
|
||||
pkgrel = 2
|
||||
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.32.0/op_linux_amd64_v2.32.0.zip
|
||||
sha256sums_x86_64 = 68e3141b11ad38ba5004fb40d71371b710c0bbf94733f0df9180768336f90097
|
||||
source_i686 = https://cache.agilebits.com/dist/1P/op2/pkg/v2.32.0/op_linux_386_v2.32.0.zip
|
||||
sha256sums_i686 = f9a7649d94335e1a5b574822a7040ab9faa58e3c185d85dbf2a88068d5e06829
|
||||
source_arm = https://cache.agilebits.com/dist/1P/op2/pkg/v2.32.0/op_linux_arm_v2.32.0.zip
|
||||
sha256sums_arm = 463227b46246fc764c48ec918c2c1c04ffb354d0eeb00a536c1d9f1549a0347c
|
||||
source_armv6h = https://cache.agilebits.com/dist/1P/op2/pkg/v2.32.0/op_linux_arm_v2.32.0.zip
|
||||
sha256sums_armv6h = 463227b46246fc764c48ec918c2c1c04ffb354d0eeb00a536c1d9f1549a0347c
|
||||
source_aarch64 = https://cache.agilebits.com/dist/1P/op2/pkg/v2.32.0/op_linux_arm64_v2.32.0.zip
|
||||
sha256sums_aarch64 = 6f3d571aabe7701e21ad4b0f9d30207c3dcabdb2f9c261e3651106dde0ee8946
|
||||
|
||||
pkgname = 1password-cli
|
||||
@@ -0,0 +1,10 @@
|
||||
# makepkg directories
|
||||
pkg/
|
||||
src/
|
||||
|
||||
# built packages
|
||||
*.tar.xz
|
||||
*.tar.zst
|
||||
|
||||
# source files
|
||||
*.zip
|
||||
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
# Maintainer: slurpee <aur@lylat.io>
|
||||
# Contributors: Felix Seidel, Claudia Pellegrino, Liu Yuxuan
|
||||
|
||||
pkgname=1password-cli
|
||||
pkgver=2.32.0
|
||||
pkgrel=2
|
||||
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=('68e3141b11ad38ba5004fb40d71371b710c0bbf94733f0df9180768336f90097')
|
||||
sha256sums_i686=('f9a7649d94335e1a5b574822a7040ab9faa58e3c185d85dbf2a88068d5e06829')
|
||||
sha256sums_arm=('463227b46246fc764c48ec918c2c1c04ffb354d0eeb00a536c1d9f1549a0347c')
|
||||
sha256sums_armv6h=("${sha256sums_arm}")
|
||||
sha256sums_aarch64=('6f3d571aabe7701e21ad4b0f9d30207c3dcabdb2f9c261e3651106dde0ee8946')
|
||||
|
||||
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:
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/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