Create small wrapper script for /usr/bin/onlykey-gui shortcut

This commit is contained in:
David Thurstenson 2021-12-28 01:06:45 -06:00
parent cfdebcb5c9
commit 41a42d49f8
2 changed files with 10 additions and 2 deletions

View File

@ -1,10 +1,11 @@
pkgbase = onlykey-gui
pkgdesc = OnlyKey Chrome Desktop App
pkgver = 5.3.3
pkgrel = 2
pkgrel = 3
url = https://onlykey.io/
arch = x86_64
license = custom
depends = dex
source = https://github.com/trustcrypto/OnlyKey-App/releases/download/v5.3.3/OnlyKey_5.3.3_amd64.deb
sha256sums = 10611139e7cb601e49453dd9297aa8be767956c8ff37ebebeae1ac9076008e63

View File

@ -3,14 +3,21 @@
pkgname=onlykey-gui
pkgver=5.3.3
pkgrel=2
pkgrel=3
pkgdesc="OnlyKey Chrome Desktop App"
arch=('x86_64')
url="https://onlykey.io/"
license=('custom')
depends=('dex')
source=("https://github.com/trustcrypto/OnlyKey-App/releases/download/v${pkgver}/OnlyKey_${pkgver}_amd64.deb")
sha256sums=('10611139e7cb601e49453dd9297aa8be767956c8ff37ebebeae1ac9076008e63')
package() {
bsdtar -C "${pkgdir}" -xf "${srcdir}/data.tar.xz"
local desktopfile="/usr/share/applications/OnlyKey.desktop"
# Create wrapper
(echo "#!/usr/bin/env sh"; echo "exec dex ${desktopfile}") > /usr/bin/onlykey-gui
}