Pkgfile 1.6 KB

12345678910111213141516171819202122232425262728
  1. # Description: Cross-platform application for managing your YubiKey's second factor credentials (version 7)
  2. # URL: https://github.com/Yubico/yubioath-flutter
  3. # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
  4. # Depends on: qt-sudo ccid
  5. name=yubico-authenticator-bin
  6. version=7.1.1
  7. release=1
  8. source=(https://github.com/Yubico/yubioath-flutter/releases/download/7.1.1/yubico-authenticator-7.1.1-linux.tar.gz)
  9. build() {
  10. cd yubico-authenticator-$version-linux
  11. sed -i 's|Exec="@EXEC_PATH/authenticator"|Exec=qt-sudo /opt/Yubico-authenticator/authenticator|' linux_support/com.yubico.authenticator.desktop
  12. 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
  13. mkdir -p $PKG/opt/Yubico-authenticator
  14. 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
  15. install -Dm644 linux_support/com.yubico.authenticator.desktop $PKG/usr/share/applications/com.yubico.authenticator.desktop
  16. install -Dm644 linux_support/com.yubico.yubioath.png $PKG/usr/share/pixmaps/com.yubico.yubioath.png
  17. mkdir -p $PKG/usr/bin
  18. ln -s /opt/Yubico-authenticator/authenticator $PKG/usr/bin/yubico-authenticator
  19. 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}
  20. }