blob: 937d8cd49349db40a47b7c86ab8224c68c72b84d (
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
48
49
50
|
# $Id$
# Maintainer: Radu Potop <radu at wooptoo dot com>
pkgname=authy-export-git
_bin=authy-export
_gitname=authy
pkgver=0.3.2.2.gc4f2
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'
)
pkgver() {
cd "$_gitname"
git describe --abbrev=4 --always --tags | sed 's/-/./g' | sed 's/v//'
}
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}/"
}
sha256sums=('SKIP'
'9a1209265ee938ca0931aae3c74fff17a6141c8a05f4170e3a4c294d8e635772')
|