Pull in all aur pkgbuilds
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
pkgbase = 1password-beta
|
||||
pkgdesc = Password manager and secure wallet
|
||||
pkgver = 8.11.16_30.BETA
|
||||
pkgrel = 30
|
||||
url = https://1password.com
|
||||
install = 1password.install
|
||||
arch = x86_64
|
||||
license = LicenseRef-1Password-Proprietary
|
||||
conflicts = 1password
|
||||
conflicts = 1password-beta-bin
|
||||
options = !strip
|
||||
source = https://downloads.1password.com/linux/tar/beta/x86_64/1password-8.11.16-30.BETA.x64.tar.gz
|
||||
source = https://downloads.1password.com/linux/tar/beta/x86_64/1password-8.11.16-30.BETA.x64.tar.gz.sig
|
||||
validpgpkeys = 3FEF9748469ADBE15DA7CA80AC2D62742012EA22
|
||||
sha256sums = 21f127aa3b879ec353df20e0b0eec1572f17d44e529ac19870a21586670bc0d1
|
||||
sha256sums = c04d8bf6b7059eec4279436199324547689a7cc4453e6c57a5637384d6210ba6
|
||||
|
||||
pkgname = 1password-beta
|
||||
depends = hicolor-icon-theme
|
||||
depends = libgtk-3.so=0
|
||||
depends = nss
|
||||
depends = xdg-utils
|
||||
@@ -0,0 +1,3 @@
|
||||
include:
|
||||
- project: 'dev/core/1password-archlinux-aur-ci'
|
||||
file: '/ci.yml'
|
||||
Executable
+48
@@ -0,0 +1,48 @@
|
||||
# Do not add your user, or any others, to this group.
|
||||
GROUP_NAME="onepassword"
|
||||
|
||||
app_group_exists() {
|
||||
if [ $(getent group "${GROUP_NAME}") ]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
setup_browser_helper() {
|
||||
# Setup the Core App Integration helper binary with the correct permissions and group
|
||||
BROWSER_SUPPORT_PATH="/opt/1Password/1Password-BrowserSupport"
|
||||
|
||||
chgrp "${GROUP_NAME}" $BROWSER_SUPPORT_PATH
|
||||
chmod g+s $BROWSER_SUPPORT_PATH
|
||||
}
|
||||
|
||||
pre_install() {
|
||||
if app_group_exists; then
|
||||
: # Do nothing
|
||||
else
|
||||
groupadd "${GROUP_NAME}"
|
||||
fi
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
if app_group_exists; then
|
||||
: # Do nothing
|
||||
else
|
||||
groupadd "${GROUP_NAME}"
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
setup_browser_helper
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
setup_browser_helper
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
if app_group_exists; then
|
||||
groupdel "${GROUP_NAME}"
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
.gitlab-ci.yml @people/ops-team
|
||||
CODEOWNERS @people/ops-team
|
||||
@@ -0,0 +1,66 @@
|
||||
pkgname=1password-beta
|
||||
|
||||
_tarver=8.11.16-30.BETA
|
||||
_tar="1password-${_tarver}.x64.tar.gz"
|
||||
pkgver=${_tarver//-/_}
|
||||
pkgrel=30
|
||||
conflicts=('1password' '1password-beta-bin')
|
||||
pkgdesc="Password manager and secure wallet"
|
||||
arch=('x86_64')
|
||||
url='https://1password.com'
|
||||
license=('LicenseRef-1Password-Proprietary')
|
||||
options=(!strip)
|
||||
install="1password.install"
|
||||
source=(https://downloads.1password.com/linux/tar/beta/${CARCH}/${_tar}{,.sig})
|
||||
sha256sums=('21f127aa3b879ec353df20e0b0eec1572f17d44e529ac19870a21586670bc0d1'
|
||||
'c04d8bf6b7059eec4279436199324547689a7cc4453e6c57a5637384d6210ba6'
|
||||
)
|
||||
validpgpkeys=('3FEF9748469ADBE15DA7CA80AC2D62742012EA22')
|
||||
|
||||
package() {
|
||||
depends=('hicolor-icon-theme' 'libgtk-3.so=0' 'nss' 'xdg-utils')
|
||||
|
||||
# Go to source directory
|
||||
cd "1password-${_tarver}.x64"
|
||||
|
||||
# Install icons
|
||||
resolutions=(32x32 64x64 256x256 512x512)
|
||||
for resolution in "${resolutions[@]}"
|
||||
do
|
||||
install -Dm0644 "resources/icons/hicolor/${resolution}/apps/1password.png" \
|
||||
"${pkgdir}/usr/share/icons/hicolor/${resolution}/apps/1password.png"
|
||||
done
|
||||
# Install desktop file
|
||||
install -Dm0644 resources/1password.desktop -t "${pkgdir}"/usr/share/applications/
|
||||
|
||||
# Fill in policy kit file with a list of (the first 10) human users of the system.
|
||||
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 ./com.1password.1Password.policy.tpl)
|
||||
EOF" > ./com.1password.1Password.policy
|
||||
|
||||
# Install system unlock PolKit policy file
|
||||
install -Dm0644 com.1password.1Password.policy -t "${pkgdir}"/usr/share/polkit-1/actions/
|
||||
|
||||
# Install examples
|
||||
install -Dm0644 resources/custom_allowed_browsers -t "${pkgdir}"/usr/share/doc/1password/examples/
|
||||
|
||||
# Move package contents to /opt/1Password
|
||||
cd "${srcdir}"
|
||||
install -dm0755 "${pkgdir}"/opt
|
||||
mv "1password-${_tarver}.x64" "${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
|
||||
rm -r "${pkgdir}"/opt/1Password/resources/icons/
|
||||
rm "${pkgdir}"/opt/1Password/resources/1password.desktop "${pkgdir}"/opt/1Password/resources/custom_allowed_browsers
|
||||
|
||||
# Symlink /usr/bin executable to opt
|
||||
install -dm0755 "${pkgdir}"/usr/bin
|
||||
ln -s /opt/1Password/1password "${pkgdir}"/usr/bin/1password
|
||||
|
||||
# chrome-sandbox requires the setuid bit to be specifically set.
|
||||
# See https://github.com/electron/electron/issues/17972
|
||||
chmod 4755 "${pkgdir}"/opt/1Password/chrome-sandbox
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
SSH_PRIVATE_KEY_B64 = "op://cgl-build-release-archlinux-aur-prod/AUR_SSH_PRIVATE_KEY_B64/credential"
|
||||
SSH_PASSPHRASE_B64 = "op://cgl-build-release-archlinux-aur-prod/AUR_SSH_PASSPHRASE_B64/credential"
|
||||
Reference in New Issue
Block a user