diff options
author | Gregory Rudolph <rudi@underland.nightmare.haus> | 2020-01-17 11:33:44 -0700 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2020-01-17 12:06:22 -0700 |
commit | 194da103629ba79052dfbac7503fab46d7f174dc (patch) | |
tree | 73e9acaa778dbe29a63954aa5a9647b9dbbb91a9 /app-crypt/keybase/keybase-5.1.1.ebuild | |
parent | sys-apps/sed: require static-libs when USE=static is enabled (diff) | |
download | gentoo-194da103629ba79052dfbac7503fab46d7f174dc.tar.gz gentoo-194da103629ba79052dfbac7503fab46d7f174dc.tar.bz2 gentoo-194da103629ba79052dfbac7503fab46d7f174dc.zip |
app-crypt/keybase: version bump to 5.1.1
Cleaning older ebuilds
Signed-off-by: Gregory 'Rudi' Rudolph-Alverson <rudi@nmare.net>
Signed-off-by: Nicolas Bock <nicolasbock@gentoo.org>
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Diffstat (limited to 'app-crypt/keybase/keybase-5.1.1.ebuild')
-rw-r--r-- | app-crypt/keybase/keybase-5.1.1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-crypt/keybase/keybase-5.1.1.ebuild b/app-crypt/keybase/keybase-5.1.1.ebuild new file mode 100644 index 000000000000..243bc44f883b --- /dev/null +++ b/app-crypt/keybase/keybase-5.1.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 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" +} |