blob: 3106ac927fc54e74168fb5b08de730bfb12a0d9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Ary Kleinerman <kleinerman at gmail dot com>
#
pkgname=yubico-authenticator-bin
pkgver=6.3.0
pkgdesc="Yubico Authenticator 6 is a cross-platform application for managing your YubiKey's second factor credentials.\
Yubico Authenticator 6 is a complete rewrite of the application using the Flutter framework."
arch=('x86_64')
url="https://github.com/Yubico/yubioath-flutter"
license=('GPL')
depends=('ccid' 'zenity')
conflicts=('yubico-authenticator')
options=(!strip)
optdepends=('gnome-screenshot: QR scanning feature on GNOME'
'spectacle: QR scanning feature on KDE')
pkgrel=2
source=(
"${url}/releases/download/${pkgver}/yubico-authenticator-${pkgver}-linux.tar.gz"{,.sig}
)
validpgpkeys=(
'20EE325B86A81BCBD3E56798F04367096FBA95E8'
)
sha256sums=('dbfa5d75208c9458985853fab486e41f060d354ac8d745853304c4c57f82935a'
'SKIP')
prepare() {
echo -e "\n\033[0;32mINSTALLATION NOTE:\n"
echo -e "If installation fails with 'One or more PGP signatures could not be verified', then install the key with:\n"
echo -e " gpg --recv-keys 20EE325B86A81BCBD3E56798F04367096FBA95E8\n"
echo -e "Then retry the installation.\033[0m\n"
sed -i 's|\(Exec="\)@EXEC_PATH|\1/opt/yubico-authenticator|' "${srcdir}"/yubico-authenticator-"${pkgver}"-linux/linux_support/com.yubico.authenticator.desktop
sed -i 's|\(Icon=\)@EXEC_PATH/linux_support/|\1|' "${srcdir}"/yubico-authenticator-"${pkgver}"-linux/linux_support/com.yubico.authenticator.desktop
}
package() {
# Install the application files
mkdir -p "$pkgdir/opt/yubico-authenticator"
ls -1 "${srcdir}"/yubico-authenticator-"${pkgver}"-linux | grep -v "linux_support\|desktop_integration.sh\|README.adoc" | xargs -I{} cp -r "${srcdir}"/yubico-authenticator-"${pkgver}"-linux/{} "$pkgdir/opt/yubico-authenticator"
# Install the desktop file
install -Dm644 "${srcdir}"/yubico-authenticator-"${pkgver}"-linux/linux_support/com.yubico.authenticator.desktop "${pkgdir}"/usr/share/applications/com.yubico.authenticator.desktop
# Install the icon
install -Dm644 "${srcdir}"/yubico-authenticator-"${pkgver}"-linux/linux_support/com.yubico.yubioath.png "${pkgdir}"/usr/share/pixmaps/com.yubico.yubioath.png
# Create the symlink directory
mkdir -p "${pkgdir}/usr/bin"
ln -s /opt/yubico-authenticator/authenticator "${pkgdir}/usr/bin/yubico-authenticator"
}
|