net-im/dingtalk: bump version to 1.4.0.20408
net-im/dingtalk: bump version to 1.4.0.20408 net-im/dingtalk: bump version to 1.4.0.20408
This commit is contained in:
1 parent
6703b03f42
commit
4aadc4e566
3 files changed
+4
-130
No files matched your search
@@ -1,2 +1 @@
|
||||
DIST com.alibabainc.dingtalk_1.3.0.12502_amd64.deb 228505516 BLAKE2B 5b495182f28a809891d6d5b0cfc4a8f6d7890a1b79fc9cc93b42402db5cfa832c852939261f83dace93f7f55c287aab60fd2b6548406ec8736f5aec23079bb46 SHA512 f0738dfdafd294c468f06a5977322be0c2945bd6287075b4270b296b83b56face9914e3708735c448db81f99ebf46dba53d1d470935082b93745ebba024d5fb9
|
||||
DIST com.alibabainc.dingtalk_1.3.0.20214_amd64.deb 228552004 BLAKE2B 98814a8d7660abc688aa1d2b5a33b58c5c93b97861cbe9ce0ade701d114ca29d27fb30a0c447b93553aeb576436a1c5d50cbf68b3b7cf766474eea3d09b3dabb SHA512 63bd96fc2c8827827817087e87977ddacf4f51dc0c8605be859e2f92cd39a3fc2e16e4dac1193bf2972367421a5e54c2d461a70ff7ff8d39ab993292e41277b0
|
||||
DIST com.alibabainc.dingtalk_1.4.0.20408_amd64.deb 233963340 BLAKE2B 450224543adacfba1a6cdf915d3c95d83a94ffd63b70339a60b44dbc00727035aaabad33f671ccee78f8b0631db20151e1353d753eaff736a3f0a3021bebd1e2 SHA512 d5413c16b5ab19766c4f90043193d51282b57a0f80af9b22dcb107494b925a321063538eee217b223d5fb4bb10e8e7bb319950a18d6b027780722f5b95b0b7e8
|
||||
@@ -1,125 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PGK_NAME="com.alibabainc.dingtalk"
|
||||
inherit unpacker xdg
|
||||
|
||||
DESCRIPTION="Communication platform that supports video and audio conferencing"
|
||||
HOMEPAGE="https://gov.dingtalk.com"
|
||||
SRC_URI="https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.${PN}_${PV}_amd64.deb"
|
||||
|
||||
LICENSE="all-rights-reserved"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
|
||||
RESTRICT="strip mirror bindist"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libthai
|
||||
dev-qt/qtgui
|
||||
net-nds/openldap
|
||||
media-sound/pulseaudio
|
||||
media-video/rtmpdump
|
||||
net-misc/curl
|
||||
sys-libs/glibc
|
||||
sys-libs/zlib
|
||||
sys-process/procps
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libXScrnSaver
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="dev-util/patchelf"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
# Move ${MY_PGK_NAME} out from /opt/apps
|
||||
mkdir -p "${S}"/usr/share/icons/hicolor/scalable/apps || die
|
||||
mv "${S}"/opt/apps/"${MY_PGK_NAME}" "${S}"/opt/"${MY_PGK_NAME}" || die
|
||||
cp "${FILESDIR}"/dingtalk.svg "${S}"/usr/share/icons/hicolor/scalable/apps || die
|
||||
# Remove the libraries that break compatibility in modern systems
|
||||
# Dingtalk will use the system libs instead
|
||||
MY_VERSION=$(cat "${S}"/opt/"${MY_PGK_NAME}"/files/version)
|
||||
# Use system stdc++
|
||||
rm "${S}"/opt/"${MY_PGK_NAME}"/files/"${MY_VERSION}"/libstdc++* || die
|
||||
# Use system glibc
|
||||
rm "${S}"/opt/"${MY_PGK_NAME}"/files/"${MY_VERSION}"/libm.so* || die
|
||||
# Use system zlib
|
||||
rm "${S}"/opt/"${MY_PGK_NAME}"/files/"${MY_VERSION}"/libz* || die
|
||||
# Use system gtk+, or it can't be switch input method on popup window
|
||||
rm "${S}"/opt/"${MY_PGK_NAME}"/files/"${MY_VERSION}"/libgtk-x11* || die
|
||||
# Use system libcurl, fix preserved depend problem
|
||||
rm "${S}"/opt/"${MY_PGK_NAME}"/files/"${MY_VERSION}"/libcurl.so* || die
|
||||
|
||||
# Set RPATH for preserve-libs handling
|
||||
pushd "${S}"/opt/"${MY_PGK_NAME}"/files/"${MY_VERSION}" || die
|
||||
local x
|
||||
for x in $(find) ; do
|
||||
# Use \x7fELF header to separate ELF executables and libraries
|
||||
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
|
||||
local RPATH_ROOT="/opt/${MY_PGK_NAME}/files/${MY_VERSION}"
|
||||
patchelf --set-rpath "${RPATH_ROOT}/:${RPATH_ROOT}/swiftshader/:${RPATH_ROOT}/platforminputcontexts/:${RPATH_ROOT}/imageformats/" "${x}" || \
|
||||
die "patchelf failed on ${x}"
|
||||
done
|
||||
popd || die
|
||||
# Fix fcitx5
|
||||
sed -i "s/export XMODIFIERS/#export XMODIFIERS/g" "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh || die
|
||||
sed -i "s/export QT_IM_MODULE/#export QT_IM_MODULE/g" "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh || die
|
||||
|
||||
cat >> "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh.head <<- EOF || die
|
||||
#!/bin/sh
|
||||
if [ -z "\${QT_IM_MODULE}" ]
|
||||
then
|
||||
if [ -n "\$(pidof fcitx5)" ]
|
||||
then
|
||||
export XMODIFIERS="@im=fcitx5"
|
||||
export QT_IM_MODULE=fcitx5
|
||||
elif [ -n "\$(pidof ibus-daemon)" ]
|
||||
then
|
||||
export XMODIFIERS="@im=ibus"
|
||||
export QT_IM_MODULE=ibus
|
||||
else
|
||||
export XMODIFIERS="@im=fcitx"
|
||||
export QT_IM_MODULE=fcitx
|
||||
fi
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh.head "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh > "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh.new || die
|
||||
cat "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh.new > "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh || die
|
||||
rm "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh.head "${S}"/opt/"${MY_PGK_NAME}"/files/Elevator.sh.new || die
|
||||
|
||||
# Add dingtalk command
|
||||
mkdir -p "${S}"/usr/bin/ || die
|
||||
ln -s /opt/"${MY_PGK_NAME}"/files/Elevator.sh "${S}"/usr/bin/dingtalk || die
|
||||
|
||||
# Fix file path and desktop files
|
||||
sed -E -i 's|/opt/apps|/opt|g' "${S}"/opt/"${MY_PGK_NAME}"/entries/applications/*.desktop || die
|
||||
sed -E -i 's|/opt/apps|/opt|g' "${S}"/opt/"${MY_PGK_NAME}"//files/Elevator.sh || die
|
||||
sed -E -i 's/^Icon=.*$/Icon=dingtalk/g' "${S}"/opt/"${MY_PGK_NAME}"/entries/applications/*.desktop || die
|
||||
|
||||
mkdir -p usr/share/applications || die
|
||||
mv "${S}"/opt/"${MY_PGK_NAME}"/entries/applications/"${MY_PGK_NAME}".desktop usr/share/applications/ || die
|
||||
|
||||
# Install package and fix permissions
|
||||
insinto /opt
|
||||
doins -r opt/${MY_PGK_NAME}
|
||||
insinto /usr
|
||||
doins -r usr/*
|
||||
|
||||
pushd "${S}" || die
|
||||
for x in $(find "opt/${MY_PGK_NAME}") ; do
|
||||
# Fix shell script permissions
|
||||
[[ "${x: -3}" == ".sh" ]] && fperms 0755 "/${x}"
|
||||
# Use \x7fELF header to separate ELF executables and libraries
|
||||
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] && fperms 0755 "/${x}"
|
||||
done
|
||||
popd || die
|
||||
}
|
||||
+3
-3
@@ -3,9 +3,9 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop multilib unpacker xdg
|
||||
inherit unpacker xdg
|
||||
|
||||
DESCRIPTION="dingtalk"
|
||||
DESCRIPTION="DingTalk is an intelligent working platform created by Alibaba Group"
|
||||
HOMEPAGE="https://gov.dingtalk.com"
|
||||
SRC_URI="https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.${PN}_${PV}_amd64.deb"
|
||||
|
||||
@@ -55,7 +55,7 @@ src_install() {
|
||||
# Use system zlib
|
||||
rm opt/apps/com.alibabainc.dingtalk/files/${version}/libz* || die
|
||||
# Use system gtk+, or it can't be switch input method on popup window
|
||||
rm opt/apps/com.alibabainc.dingtalk/files/${version}/libgtk-x11* || die
|
||||
#rm opt/apps/com.alibabainc.dingtalk/files/${version}/libgtk-x11* || die
|
||||
|
||||
# Set RPATH for preserve-libs handling
|
||||
pushd "opt/apps/com.alibabainc.dingtalk/files/${version}/" || die
|
||||
Reference in new issue
Block a user