Overlay/net-misc/gdrive/gdrive-2.1.0.ebuild

33 lines
682 B
Bash
Raw Normal View History

2019-06-10 17:42:46 +03:00
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
2022-08-05 09:05:30 +03:00
EAPI=7
2019-06-10 17:42:46 +03:00
inherit golang-build
EGO_PN="github.com/prasmussen/gdrive"
DESCRIPTION="Command line utility for interacting with Google Drive"
HOMEPAGE="https://github.com/prasmussen/gdrive"
SRC_URI="https://github.com/prasmussen/gdrive/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=dev-lang/go-1.5"
RDEPEND=""
src_unpack() {
default
mv "${S}" "${WORKDIR}/tmp"
mkdir -p "${S}/src/${EGO_PN}" || die
mv "${WORKDIR}/tmp/"* "${S}/src/${EGO_PN}/" || die
}
src_install() {
dobin gdrive
dodoc "src/${EGO_PN}/README.md"
}