pkgname=onlykey pkgver=5.1.0 pkgrel=2 pkgdesc="OnlyKey Chrome Desktop App" arch=('x86_64') url="https://onlykey.io/" license=('custom') source=("https://github.com/trustcrypto/OnlyKey-App/releases/download/v${pkgver}/OnlyKey_${pkgver}_amd64.deb") sha256sums=('4638ce8b21c66b6f414d937d08ba01917db3d20b050630e6b456c338ba1c9e06') package() { bsdtar -O -xf "OnlyKey_${pkgver}"*.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf - find "${pkgdir}" -type d -exec chmod 755 {} + chmod 755 "${pkgdir}"/usr/share/applications/OnlyKey.desktop install -Dm 644 49-onlykey.rules "${pkgdir}/etc/udev/rules.d/49-onlykey.rules" }