12345678910111213141516171819202122232425262728 |
- # Description: Cross-platform application for managing your YubiKey's second factor credentials (version 7)
- # URL: https://github.com/Yubico/yubioath-flutter
- # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
- # Depends on: qt-sudo ccid
- name=yubico-authenticator-bin
- version=7.1.1
- release=1
- source=(https://github.com/Yubico/yubioath-flutter/releases/download/7.1.1/yubico-authenticator-7.1.1-linux.tar.gz)
- build() {
- cd yubico-authenticator-$version-linux
- sed -i 's|Exec="@EXEC_PATH/authenticator"|Exec=qt-sudo /opt/Yubico-authenticator/authenticator|' linux_support/com.yubico.authenticator.desktop
- sed -i 's|Icon=@EXEC_PATH/linux_support/com.yubico.yubioath.png|Icon=/usr/share/pixmaps/com.yubico.yubioath.png|' linux_support/com.yubico.authenticator.desktop
- mkdir -p $PKG/opt/Yubico-authenticator
- ls -1 ../yubico-authenticator-7.1.1-linux | grep -v "linux_support\|desktop_integration.sh\|README.adoc" | xargs -I{} cp -r ../yubico-authenticator-7.1.1-linux/{} $PKG/opt/Yubico-authenticator
- install -Dm644 linux_support/com.yubico.authenticator.desktop $PKG/usr/share/applications/com.yubico.authenticator.desktop
- install -Dm644 linux_support/com.yubico.yubioath.png $PKG/usr/share/pixmaps/com.yubico.yubioath.png
- mkdir -p $PKG/usr/bin
- ln -s /opt/Yubico-authenticator/authenticator $PKG/usr/bin/yubico-authenticator
- rm -rf $PKG/{opt/Yubico-authenticator/helper/_internal/cryptography-43.0.1.dist-info/INSTALLER,opt/Yubico-authenticator/helper/_internal/keyring-25.3.0.dist-info/INSTALLER,opt/Yubico-authenticator/helper/_internal/setuptools/_vendor/*/INSTALLER,opt/Yubico-authenticator/helper/_internal/*/INSTALLER}
- }
|