Pkgfile 1.0 KB

12345678910111213141516171819202122232425
  1. # Description: OnlyKey Chrome Desktop App
  2. # URL: https://onlykey.io/
  3. # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
  4. # Depends on:
  5. name=onlykey
  6. version=5.5.0
  7. release=5
  8. source=(https://github.com/trustcrypto/OnlyKey-App/releases/download/v5.5.0/OnlyKey_5.5.0_amd64.deb)
  9. build() {
  10. bsdtar -xf OnlyKey_5.5.0_amd64.deb
  11. bsdtar -xf data.tar.xz
  12. find -type d -exec chmod 755 {} +
  13. mkdir -p $PKG/opt
  14. cp -r ./opt/OnlyKey $PKG/opt
  15. install -Dm644 usr/share/applications/OnlyKey.desktop $PKG/usr/share/applications/OnlyKey.desktop
  16. chmod 755 $PKG/usr/share/applications/OnlyKey.desktop
  17. install -Dm 644 etc/udev/rules.d/49-onlykey.rules $PKG/etc/udev/rules.d/49-onlykey.rules
  18. mkdir -p $PKG/usr/bin
  19. ln -s /opt/OnlyKey/nw $PKG/usr/bin/onlykey
  20. rm -rf $PKG/{opt/OnlyKey/node_modules/*/README.*,opt/OnlyKey/node_modules/*/*/README.*,opt/OnlyKey/node_modules/*/*/*/README.*,opt/OnlyKey/node_modules/*/*/*/*/README.*,opt/OnlyKey/node_modules/*/AUTHORS,opt/OnlyKey/node_modules/*/*/AUTHORS,opt/OnlyKey/node_modules/*/AUTHORS.md}
  21. }