因为这些包的授权或是禁止再散布软件本体、或是禁止对散布收取费用、或是要求授权方书面同意,而它们的 `RESTRICT` 缺少 `bindist`(`app- misc/bcompare` 缺 `mirror`),构建出的二进制包与 distfile 会被当作可以散布,所以按各自的条款补齐。 Signed-off-by: Zakk <zakk@gentoozh.org>
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
# Copyright 2020-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit unpacker desktop xdg
|
|
|
|
SPECIAL_DIRVER="${PV}.427"
|
|
# I don't know why Baidu changed the URL structure, but they did,
|
|
# so I add this to match the new 4-digit directory version.
|
|
|
|
DESCRIPTION="Baidu Net Disk is a cloud storage client (Linux Version)"
|
|
HOMEPAGE="https://pan.baidu.com/"
|
|
SRC_URI="https://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/${SPECIAL_DIRVER}/${PN}_${PV}_amd64.deb"
|
|
|
|
S="${WORKDIR}"
|
|
LICENSE="BaiduNetDisk"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64"
|
|
RESTRICT="strip mirror bindist"
|
|
|
|
RDEPEND="
|
|
app-crypt/p11-kit
|
|
dev-libs/nss
|
|
media-libs/alsa-lib
|
|
x11-libs/gtk+:3[cups,X,wayland]
|
|
x11-libs/libXScrnSaver
|
|
x11-libs/libXtst
|
|
dev-cpp/gtkmm:2.4
|
|
"
|
|
|
|
QA_PREBUILT="*"
|
|
|
|
src_install() {
|
|
insinto /opt
|
|
doins -r opt/"${PN}"
|
|
find "${D}" -type d -name "node_gyp_bins" -exec rm -rf {} + 2>/dev/null
|
|
find "${D}" -type d -empty -delete 2>/dev/null
|
|
fperms +x /opt/"${PN}"/"${PN}"
|
|
dosym -r /opt/{"${PN}"/"${PN}",bin/"${PN}"}
|
|
|
|
gzip -d usr/share/doc/"${PN}"/*.gz || die
|
|
dodoc usr/share/doc/"${PN}"/*
|
|
|
|
domenu usr/share/applications/"${PN}".desktop
|
|
doicon -s scalable usr/share/icons/hicolor/scalable/apps/"${PN}".svg
|
|
}
|