Skip to content

Instantly share code, notes, and snippets.

@hasufell
Created November 21, 2019 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasufell/2281fba36b346db35df3242d93ceeae7 to your computer and use it in GitHub Desktop.
Save hasufell/2281fba36b346db35df3242d93ceeae7 to your computer and use it in GitHub Desktop.
# 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