remove ia64 keywords
[gentoo-zh.git] / net-misc / baidunetdisk / baidunetdisk-4.17.7.ebuild
blob67c3672b94a794a0d1434aa86a1d57dc106e72ea
1 # Copyright 2020-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit unpacker desktop xdg
8 DESCRIPTION="Baidu Net Disk is a cloud storage client (Linux Version)"
9 HOMEPAGE="https://pan.baidu.com/"
10 SRC_URI="http://wppkg.baidupcs.com/issue/netdisk/Linuxguanjia/${PV}/${PN}_${PV}_amd64.deb"
12 LICENSE="BaiduNetDisk"
13 SLOT="0"
14 RESTRICT="strip mirror"
15 KEYWORDS="-* ~amd64"
17 QA_PREBUILT="*"
19 # libuuid
20 # libatspi2.0
21 RDEPEND="
22 app-crypt/p11-kit
23 app-crypt/libsecret
24 dev-libs/nss
25 media-libs/alsa-lib
26 x11-misc/xdg-utils
27 x11-libs/gtk+:3[cups]
28 x11-libs/libnotify
29 x11-libs/libXScrnSaver
30 x11-libs/libXtst
33 S="${WORKDIR}"
35 src_install() {
36 insinto /opt
37 doins -r opt/"${PN}"
38 fperms +x /opt/"${PN}"/"${PN}"
39 dobin "${FILESDIR}"/baidunetdisk
41 gzip -d usr/share/doc/"${PN}"/*.gz || die
42 dodoc usr/share/doc/"${PN}"/*
44 sed -i "s/Exec=.*/Exec=baidunetdisk %U/g" usr/share/applications/"${PN}".desktop
45 domenu usr/share/applications/"${PN}".desktop
46 doicon -s scalable usr/share/icons/hicolor/scalable/apps/"${PN}".svg