View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="aliyunpan cli client, support Webdav service, JavaScript plugin"
HOMEPAGE="https://github.com/tickstep/aliyunpan"
SRC_URI="https://github.com/tickstep/aliyunpan/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/gentoo-zh-drafts/aliyunpan/releases/download/v${PV}/${P}-vendor.tar.xz
-> ${P}-vendor.golang-dist-mirror-action.tar.xz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86"
src_compile() {
ego build -o bin/${PN} -trimpath
}
src_install() {
dobin bin/${PN}
}
pkg_postinst() {
elog "if you see \"FATAL ERROR: config file error: config file permission denied\""
elog "try \"mkdir ~/.aliyunpan\""
}