Created
November 21, 2019 01:25
-
-
Save hasufell/2281fba36b346db35df3242d93ceeae7 to your computer and use it in GitHub Desktop.
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
# Copyright 2017 Thomas Anderson <tanderson@caltech.edu> | |
# Distributed under the terms of the GNU General Public License v2 | |
VPV="v${PV}" | |
require github [ user="${PN}" pn=client tag=${VPV} ] | |
require systemd-service [ systemd_files=[ ] systemd_user_files=[ packaging/linux/systemd/keybase.service ] ] | |
SUMMARY="Keybase CLI tool" | |
HOMEPAGE="https://keybase.io/" | |
LICENCES="Apache-2.0 BSD-3 BSD-2 LGPL-3 MIT MPL-2.0" | |
SLOT="0" | |
PLATFORMS="~amd64" | |
DEPENDENCIES=" | |
build: | |
dev-lang/go[>=1.7.1] | |
suggestion: | |
app-crypt/gnupg | |
" | |
src_prepare() { | |
edo mkdir -p "${WORK}"/.gopath/src/github.com/keybase/ | |
edo ln -s "${WORK}" "${WORK}"/.gopath/src/github.com/keybase/client | |
edo mkdir bin | |
} | |
src_compile() { | |
export GOPATH="${WORK}"/.gopath | |
edo go build \ | |
-o "${WORK}"/bin/keybase \ | |
-tags production \ | |
github.com/keybase/client/go/keybase | |
} | |
src_install() { | |
dobin bin/* | |
dobin "${WORK}/packaging/linux/run_keybase" | |
install_systemd_files | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment