net-misc/baidupcs-go - 4.0.0 (gentoo-zh)

Search

Package Information

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

Ebuild Details

Version EAPI Keywords Slot
4.0.0 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="BaiduPCS-Go"

inherit go-module

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/qjfoidnh/${MY_PN}.git"
	src_unpack() {
		git-r3_src_unpack
	}
else
	SRC_URI="https://github.com/qjfoidnh/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
		https://github.com/gentoo-zh-drafts/${MY_PN}/releases/download/v${PV}/${MY_PN}-${PV}-vendor.tar.xz
			-> ${P}-vendor.tar.xz"
	KEYWORDS="~amd64 ~x86"
	S="${WORKDIR}/${MY_PN}-${PV}"
fi

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

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

src_compile() {
	ego build -o ${PN}
}

src_install() {
	dobin ${PN}
}

Manifest for 4.0.0

Type File Size Source URLs
DIST baidupcs-go-4.0.0-vendor.tar.xz 968668 bytes https://github.com/gentoo-zh-drafts/BaiduPCS-Go/releases/download/v4.0.0/BaiduPCS-Go-4.0.0-vendor.tar.xz
DIST baidupcs-go-4.0.0.tar.gz 341423 bytes https://github.com/qjfoidnh/BaiduPCS-Go/archive/v4.0.0.tar.gz