summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 371d0fba1d17bba16f864beb93db156471108cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Jakub Trnka <jakub.trnka@chainanalytics.net>

pkgname=trezor-bridge-bin
pkgver=2.0.13
pkgrel=2
pkgdesc="Communication daemon for TREZOR"
arch=('i686' 'x86_64')
url="https://trezor.io/"
license=('LGPL3')
depends=('curl' 'libmicrohttpd' 'libusb')
makedepends=()
options=()
install=$pkgname.install
source_i686=("https://wallet.trezor.io/data/bridge/${pkgver}/trezor-bridge_${pkgver}_i386.deb")
source_x86_64=("https://wallet.trezor.io/data/bridge/${pkgver}/trezor-bridge_${pkgver}_amd64.deb")
sha256sums_i686=('fe05d59355d5e9f6559ec60e7e34c286fa30e88595e9661705ee8906d254fcb8')
sha256sums_x86_64=('c6765871c59e1b9e158f06664ef55d659fe5ef7e38bef3a64eb6c8f4e799d271')

package() {
    msg2 "Extracting the data..."
    bsdtar -xf data.tar.gz -C "$pkgdir/"

    msg2 "Fixing file structure..."
    mv "$pkgdir"/lib/udev "$pkgdir"/usr/lib/
    
    msg2 "Cleaning up..."
    rm -r "$pkgdir"/lib/
}