onlykey-gui/PKGBUILD

19 lines
620 B
Bash
Raw Normal View History

2019-03-30 00:43:43 +00:00
pkgname=onlykey
2019-08-11 21:39:42 +00:00
pkgver=5.1.0
pkgrel=2
2019-03-30 00:43:43 +00:00
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')
2019-03-30 00:43:43 +00:00
package() {
2019-08-11 21:39:42 +00:00
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
2019-03-30 00:43:43 +00:00
2019-08-11 21:39:42 +00:00
install -Dm 644 49-onlykey.rules "${pkgdir}/etc/udev/rules.d/49-onlykey.rules"
2019-03-30 00:43:43 +00:00
}