1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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"
14 RESTRICT
="strip mirror"
17 DEPEND
="media-video/vlc[taglib]"
20 media-sound/pulseaudio
31 QA_PREBUILT
="opt/netease/${PN}/*"
32 QA_FLAGS_IGNORED
="opt/netease/${PN}/*"
35 $
(tc-getCC
) ${CFLAGS} -fPIC -shared -I /usr
/include
/vlc
/plugins
/ -o libnetease-patch.so
"${FILESDIR}"/patch.c || die
40 local OPN
="opt/netease/${PN}"
42 doins
-r libnetease-patch.so
"${FILESDIR}"/${PN}.bash ${OPN}/{${PN},plugins}
43 dosym -r /${OPN}/${PN}.bash /usr/bin/${PN}
46 doins -r ${OPN}/libs/qcef
47 for dol in $(cat "${FILESDIR}"/doinslib.list); do
48 doins ${OPN}/libs/${dol}
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