mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-18 07:18:58 -04:00
43 lines
902 B
Bash
43 lines
902 B
Bash
# Copyright 2020-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit unpacker desktop xdg
|
|
|
|
DESCRIPTION="Baidu Net Disk is a cloud storage client (Linux Version)"
|
|
HOMEPAGE="https://pan.baidu.com/"
|
|
SRC_URI="http://wppkg.baidupcs.com/issue/netdisk/Linuxguanjia/${PV}/${PN}_${PV}_amd64.deb"
|
|
|
|
LICENSE="BaiduNetDisk"
|
|
SLOT="0"
|
|
RESTRICT="strip"
|
|
KEYWORDS="-* ~amd64"
|
|
IUSE=""
|
|
|
|
QA_PREBUILT="*"
|
|
|
|
RDEPEND="
|
|
app-crypt/p11-kit
|
|
dev-libs/nss
|
|
media-libs/alsa-lib
|
|
x11-libs/gtk+:3[cups]
|
|
x11-libs/libXScrnSaver
|
|
x11-libs/libXtst
|
|
"
|
|
|
|
S="${WORKDIR}"
|
|
|
|
src_install() {
|
|
insinto /opt
|
|
doins -r opt/"${PN}"
|
|
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
|
|
}
|