blob: 38ae4b8516546428e1eb7b0da4e23bbc68deb9bc (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
MY_PN=browserpass-native
DESCRIPTION="WebExtension host binary for app-admin/pass, a UNIX password manager"
HOMEPAGE="https://github.com/browserpass/browserpass-native"
EGO_SUM=(
"github.com/davecgh/go-spew v1.1.0/go.mod"
"github.com/davecgh/go-spew v1.1.1"
"github.com/davecgh/go-spew v1.1.1/go.mod"
"github.com/konsorten/go-windows-terminal-sequences v1.0.1"
"github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod"
"github.com/konsorten/go-windows-terminal-sequences v1.0.2"
"github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod"
"github.com/mattn/go-zglob v0.0.1"
"github.com/mattn/go-zglob v0.0.1/go.mod"
"github.com/pmezard/go-difflib v1.0.0"
"github.com/pmezard/go-difflib v1.0.0/go.mod"
"github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5"
"github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5/go.mod"
"github.com/sirupsen/logrus v1.4.0"
"github.com/sirupsen/logrus v1.4.0/go.mod"
"github.com/stretchr/objx v0.1.0/go.mod"
"github.com/stretchr/objx v0.1.1/go.mod"
"github.com/stretchr/testify v1.2.2"
"github.com/stretchr/testify v1.2.2/go.mod"
"github.com/stretchr/testify v1.3.0"
"github.com/stretchr/testify v1.3.0/go.mod"
"golang.org/x/crypto v0.0.0-20180904163835-0709b304e793"
"golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod"
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2"
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
"golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33"
"golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod"
"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
"golang.org/x/sys v0.0.0-20190312061237-fead79001313"
"golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod"
)
go-module_set_globals
SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
${EGO_SUM_SRC_URI}"
LICENSE="BSD ISC MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="app-crypt/gnupg"
S="${WORKDIR}"/${MY_PN}-${PV}
src_compile() {
go build || die
sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \
-i browser-files/firefox-host.json browser-files/chromium-host.json || die
}
src_install() {
exeinto /usr/libexec
doexe browserpass-native
insinto /usr/lib/mozilla/native-messaging-hosts
newins browser-files/firefox-host.json com.github.browserpass.native.json
insinto /usr/lib64/mozilla/native-messaging-hosts
newins browser-files/firefox-host.json com.github.browserpass.native.json
insinto /etc/chromium/native-messaging-hosts
newins browser-files/chromium-host.json com.github.browserpass.native.json
insinto /etc/opt/chrome/native-messaging-hosts
newins browser-files/chromium-host.json com.github.browserpass.native.json
}
|