-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
32 lines (27 loc) · 868 Bytes
/
PKGBUILD
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
29
30
31
32
# Maintainer: Petrkr <petrkr <<at>> petrkr <<dot>> net>
pkgname=trezorencrypt
pkgver=0.1
pkgrel=1
pkgdesc="TREZOR encrypt and decrypt value"
arch=('x86_64' 'i686')
url="https://github.com/petrkr/trezorencrypt"
license=('LGPL3')
makedepends=('go')
_gourl=github.com/petrkr/trezorencrypt
build() {
export GOPATH="$srcdir"
go get -d -fix -v -x ${_gourl}
cd $srcdir/src/github.com/petrkr/trezorencrypt
git checkout v$pkgver
go build
cd tools
gcc -pedantic -std=c99 askpass.c -o trezor-askpass
}
check() {
GOPATH="$GOPATH:$srcdir" go test -v -x ${_gourl}
}
package() {
mkdir -p "$pkgdir/usr/bin"
install -p -m755 "$srcdir/src/github.com/petrkr/trezorencrypt/trezorencrypt" "$pkgdir/usr/bin/trezorencrypt"
install -p -m755 "$srcdir/src/github.com/petrkr/trezorencrypt/tools/trezor-askpass" "$pkgdir/usr/bin/trezor-askpass"
}