remove ia64 keywords
[gentoo-zh.git] / media-sound / netease-cloud-music / netease-cloud-music-1.2.1.ebuild
blob0432a06a8d6ea812f5bb372cbf951ca58cf3fd0b
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit unpacker desktop toolchain-funcs xdg
8 DESCRIPTION="Netease Cloud Music, converted from .deb package"
9 HOMEPAGE="https://music.163.com"
10 SRC_URI="https://d1.music.126.net/dmusic/${PN}_${PV}_amd64_ubuntu_20190428.deb"
12 LICENSE="NetEase BSD"
13 SLOT="0"
14 RESTRICT="strip mirror"
15 KEYWORDS="-* ~amd64"
17 DEPEND="media-video/vlc[taglib]"
18 RDEPEND="${DEPEND}
19 media-libs/alsa-lib
20 media-sound/pulseaudio
21 net-dns/avahi
22 net-libs/libgssglue
23 sys-auth/nss-mdns
24 sys-devel/binutils
25 virtual/jpeg:0
26 virtual/krb5
27 x11-libs/gtk+:3
29 S="${WORKDIR}"
31 QA_PREBUILT="opt/netease/${PN}/*"
32 QA_FLAGS_IGNORED="opt/netease/${PN}/*"
34 src_compile() {
35 $(tc-getCC) ${CFLAGS} -fPIC -shared -I /usr/include/vlc/plugins/ -o libnetease-patch.so "${FILESDIR}"/patch.c || die
36 default
39 src_install() {
40 local OPN="opt/netease/${PN}"
41 insinto /${OPN}
42 doins -r libnetease-patch.so "${FILESDIR}"/${PN}.bash ${OPN}/{${PN},plugins}
43 dosym -r /${OPN}/${PN}.bash /usr/bin/${PN}
45 insinto /${OPN}/libs
46 doins -r ${OPN}/libs/qcef
47 for dol in $(cat "${FILESDIR}"/doinslib.list); do
48 doins ${OPN}/libs/${dol}
49 done
50 fperms +x /${OPN}/{libnetease-patch.so,${PN},${PN}.bash,libs/qcef/chrome-sandbox}
52 gzip -d usr/share/doc/${PN}/*.gz || die
53 dodoc usr/share/doc/${PN}/*
55 doicon -s scalable usr/share/icons/hicolor/scalable/apps/${PN}.svg
56 domenu usr/share/applications/${PN}.desktop