1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit golang-build systemd
8 DESCRIPTION="Client for keybase.io"
9 HOMEPAGE="https://keybase.io/"
10 SRC_URI="https://github.com/keybase/client/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="Apache-2.0 BSD BSD-2 LGPL-3 MIT MPL-2.0"
14 KEYWORDS="~amd64 ~x86"
18 RDEPEND="app-crypt/gnupg"
22 ln -vs "client-${PV}" "${P}" || die
23 mkdir -vp "${S}/src/github.com/keybase" || die
24 ln -vs "${S}" "${S}/src/github.com/keybase/client" || die
28 EGO_PN="github.com/keybase/client/go/keybase" \
29 EGO_BUILD_FLAGS="-tags production -o ${T}/keybase" \
30 golang-build_src_compile
34 EGO_PN="github.com/keybase/client/go/keybase" \
40 dobin "${S}/packaging/linux/run_keybase"
41 systemd_douserunit "${S}/packaging/linux/systemd/keybase.service"
43 insinto "/opt/keybase"
44 doins "${S}/packaging/linux/crypto_squirrel.txt"
48 elog "Start/Restart keybase: run_keybase"
49 elog "Run the service: keybase service"
50 elog "Run the client: keybase login"
51 ewarn "Note that the user keybasehelper is obsolete and can be removed"