forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-crypt/keybase: Version bump to 4.7.2
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Nicolas Bock <[email protected]>
- Loading branch information
1 parent
0e74625
commit 0d9274f
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
inherit golang-build systemd | ||
|
||
DESCRIPTION="Client for keybase.io" | ||
HOMEPAGE="https://keybase.io/" | ||
SRC_URI="https://github.com/keybase/client/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="Apache-2.0 BSD BSD-2 LGPL-3 MIT MPL-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND="" | ||
RDEPEND="app-crypt/gnupg" | ||
|
||
src_unpack() { | ||
unpack "${P}.tar.gz" | ||
ln -vs "client-${PV}" "${P}" || die | ||
mkdir -vp "${S}/src/github.com/keybase" || die | ||
ln -vs "${S}" "${S}/src/github.com/keybase/client" || die | ||
} | ||
|
||
src_compile() { | ||
EGO_PN="github.com/keybase/client/go/keybase" \ | ||
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase" \ | ||
golang-build_src_compile | ||
} | ||
|
||
src_test() { | ||
EGO_PN="github.com/keybase/client/go/keybase" \ | ||
golang-build_src_test | ||
} | ||
|
||
src_install() { | ||
dobin "${T}/keybase" | ||
dobin "${S}/packaging/linux/run_keybase" | ||
systemd_douserunit "${S}/packaging/linux/systemd/keybase.service" | ||
dodir "/opt/keybase" | ||
insinto "/opt/keybase" | ||
doins "${S}/packaging/linux/crypto_squirrel.txt" | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Start/Restart keybase: run_keybase" | ||
elog "Run the service: keybase service" | ||
elog "Run the client: keybase login" | ||
ewarn "Note that the user keybasehelper is obsolete and can be removed" | ||
} |