net-misc/baidupcs-go - 3.6.2 (benzene-overlay)

Search

Package Information

Homepage:
https://github.com/felixonmars/BaiduPCS-Go
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
3.6.2 7 ~amd64 ~arm ~arm64 ~x86 0
View Raw Ebuild
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_PN="BaiduPCS-Go"
EGO_PN="github.com/felixonmars/${MY_PN}"

if [[ ${PV} == *9999 ]]; then
	inherit golang-build golang-vcs
else
	inherit golang-build golang-vcs-snapshot

	SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi

DESCRIPTION="The terminal utility for Baidu Network Disk (Golang Version)."
HOMEPAGE="https://github.com/felixonmars/BaiduPCS-Go"

LICENSE="Apache-2.0"
SLOT="0"

DEPEND=""
RDEPEND="${DEPEND}
	!net-misc/baidupcs-go-bin
"
BDEPEND=""

EGO_BUILD_FLAGS="-ldflags=-s"

src_prepare() {
	grep -rl iikira/BaiduPCS . | xargs sed -i 's#iikira/BaiduPCS#felixonmars/BaiduPCS#' || die
	default
}

src_install() {
	newbin ${MY_PN} ${PN}
	dodoc src/${EGO_PN}/README*
}

Dependencies

RDEPEND

	!net-misc/baidupcs-go-bin

Manifest for 3.6.2

Type File Size Source URLs
DIST baidupcs-go-3.6.2.tar.gz 919325 bytes https://github.com/felixonmars/BaiduPCS-Go/archive/v3.6.2.tar.gz