1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop unpacker xdg
8 WECHAT_INSTALLER
="WeChatSetup"
9 DP_WECHAT_VER
="${PV}deepin10"
10 DEB_PN
="com.qq.weixin.work.deepin"
12 DESCRIPTION
="Tencent Weixin Work on Deepin Wine(${DEB_PN}) For Gentoo"
13 HOMEPAGE
="https://aur.archlinux.org/packages/com.qq.weixin.work.deepin-x11"
16 https://mirrors.sdu.edu.cn/spark-store-repository/store/chat/${DEB_PN}/${DEB_PN}_${DP_WECHAT_VER}~spark1_amd64.deb
25 >=app-emulation/deepin-wine-helper-5.1.45
26 >=app-emulation/deepin-wine6-stable-6.0.0.52
28 media-fonts/wqy-microhei
29 media-libs/alsa-lib[abi_x86_32]
30 media-libs/libpulse[abi_x86_32]
31 media-libs/openal[abi_x86_32]
32 media-plugins/alsa-plugins[abi_x86_32]
33 media-sound/mpg123[abi_x86_32]
34 >=net-nds/openldap-2.4.0[abi_x86_32]
43 local OPN
="opt/apps/${DEB_PN}"
45 cp "${FILESDIR}"/"${P}"-run.sh "${S}"/"${OPN}"/files
/run.sh || die
46 sed -i "s/Categories=.*/Categories=Chat;Network;InstantMessaging;/g" \
47 "${S}"/"${OPN}"/entries/applications/"${DEB_PN}".desktop || die
48 insinto
"${OPN}"/files
49 doins
-r "${S}"/"${OPN}"/files
/*
50 fperms
+x
/"${OPN}"/files
/run.sh
52 # Install scalable icons
53 doicon
-s scalable
"${S}"/"${OPN}"/entries/icons/hicolor/48x48/apps/"${DEB_PN}".svg
54 domenu
"${S}"/"${OPN}"/entries/applications/"${DEB_PN}".desktop