blob: e75fb87d0e772095616daf29ff104bf3146bc2f8 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $Id$
# Maintainer: Radu Potop <radu at wooptoo dot com>
pkgname=authy-export-git
_bin=authy-export
_gitname=authy
pkgver=ac5e26a
pkgrel=1
pkgdesc='Export your TOTP secret tokens from Authy.'
arch=('x86_64')
url="https://github.com/alexzorin/authy"
license=('MIT')
makedepends=('go')
optdepends=('qrencode: Import tokens into a mobile app with authy-qrcode-helper.sh')
source=(
"git+${url}.git"
'authy-qrcode-helper.sh'
)
sha256sums=(
'SKIP'
'9a1209265ee938ca0931aae3c74fff17a6141c8a05f4170e3a4c294d8e635772'
)
prepare(){
cd ${srcdir}/${_gitname}
go get -v -d
}
build() {
cd ${srcdir}/${_gitname}
go build \
-buildmode=pie \
-trimpath \
-mod=readonly \
-modcacherw \
-v -o $_bin cmd/authy-export/authy-export.go
}
package() {
cd ${srcdir}/${_gitname}
install -Dm755 $_bin "${pkgdir}/usr/bin/${_bin}"
install -Dm755 "${startdir}/authy-qrcode-helper.sh" "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/share/doc/${_bin}"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${_bin}/"
install -Dm644 LICENSE "${pkgdir}/usr/share/doc/${_bin}/"
}
|