This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade TIM to 3.3.0.22020 and add deepin-wine5 support.
Signed-off-by: Codist <[email protected]>
- Loading branch information
Showing
8 changed files
with
201 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
TIM* | ||
deepin.com.qq* | ||
com.qq.* | ||
deepin-wine-tim-*.pkg* | ||
/pkg/ | ||
/src/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,58 @@ | ||
# Maintainer: Codist <[email protected]> | ||
|
||
pkgname=deepin-wine-tim | ||
pkgver=3.2.0.21856 | ||
deepintimver=2.0.0deepin4 | ||
pkgver=3.3.0.22020 | ||
debpkgver=9.3.2deepin14 | ||
debpkgname="com.qq.im.deepin" | ||
timpkgname="com.qq.office.deepin" | ||
pkgrel=1 | ||
pkgdesc="Tencent TIM (com.qq.office) on Deepin Wine For Archlinux" | ||
pkgdesc="Tencent TIM on Deepin Wine5(${timpkgname}) For Archlinux" | ||
arch=("x86_64") | ||
url="http://tim.qq.com/" | ||
url="https://tim.qq.com/" | ||
license=('custom') | ||
depends=('p7zip' 'wine' 'wine-mono' 'wine-gecko' 'xorg-xwininfo' 'wqy-microhei' 'lib32-alsa-lib' 'lib32-alsa-plugins' 'lib32-libpulse' 'lib32-openal' 'lib32-mpg123' 'lib32-gnutls') | ||
conflicts=('wine-tim' 'deepin.com.qq.office' 'deepin-tim-for-arch') | ||
install="deepin-wine-tim.install" | ||
_mirror="http://packages.deepin.com/deepin" | ||
source=("$_mirror/pool/non-free/d/deepin.com.qq.office/deepin.com.qq.office_${deepintimver}_i386.deb" | ||
"https://dldir1.qq.com/qqfile/qq/PCTIM/TIM3.2.0/TIM${pkgver}.exe" | ||
_mirror="https://community-store-packages.deepin.com" | ||
source=("$_mirror/appstore/pool/appstore/c/${debpkgname}/${debpkgname}_${debpkgver}_i386.deb" | ||
"https://dldir1.qq.com/qqfile/qq/PCTIM/TIM3.3.0/TIM${pkgver}.exe" | ||
"run.sh" | ||
"reg.patch") | ||
md5sums=('d5c37cb4f960e13111ce24dbc0dd2d58' | ||
'534c33e25dfa6360f710e5df4f3da1dd' | ||
'dbb4a2773f41c3e7ed56fea650884560' | ||
'd049e1171da0dc82c951b07cc534c39d') | ||
"share.7z") | ||
md5sums=('e12c4b26c791ca32cdc96e5441341148' | ||
'07fe0f065594b90673ab28d7388017d4' | ||
'3dcb24166e65ebbba4ba9a535402b34a' | ||
'479ae2a04a9c5dcc08c67c7b1395a944') | ||
|
||
build() { | ||
msg "Extracting DPKG package ..." | ||
mkdir -p "${srcdir}/dpkgdir" | ||
tar -xvf data.tar.xz -C "${srcdir}/dpkgdir" | ||
sed "s/\(Categories.*$\)/\1Network;/" -i "${srcdir}/dpkgdir/usr/share/applications/deepin.com.qq.office.desktop" | ||
sed "13s/TIM.exe/tim.exe/" -i "${srcdir}/dpkgdir/usr/share/applications/deepin.com.qq.office.desktop" | ||
msg "Extracting Deepin Wine TIM archive ..." | ||
7z x -aoa "${srcdir}/dpkgdir/opt/deepinwine/apps/Deepin-TIM/files.7z" -o"${srcdir}/deepintimdir" | ||
msg "Removing original outdated TIM directory ..." | ||
rm -r "${srcdir}/deepintimdir/drive_c/Program Files/Tencent/TIM" | ||
msg "Patching reg files ..." | ||
patch -p1 -d "${srcdir}/deepintimdir/" < "${srcdir}/reg.patch" | ||
#sed "s/\(Categories.*$\)/\1Network;/" -i "${srcdir}/dpkgdir/usr/share/applications/deepin.com.qq.office.desktop" | ||
#sed "13s/TIM.exe/tim.exe/" -i "${srcdir}/dpkgdir/usr/share/applications/deepin.com.qq.office.desktop" | ||
msg "Extracting Deepin Wine QQ archive ..." | ||
7z x -aoa "${srcdir}/dpkgdir/opt/apps/${debpkgname}/files/files.7z" -o"${srcdir}/deepintimdir" | ||
msg "Cleaning up the original package directory ..." | ||
rm -r "${srcdir}/deepintimdir/drive_c/Program Files/Tencent/QQ" | ||
#msg "Patching reg files ..." | ||
#patch -p1 -d "${srcdir}/deepintimdir/" < "${srcdir}/reg.patch" | ||
msg "Creating font file link ..." | ||
ln -sf "/usr/share/fonts/wenquanyi/wqy-microhei/wqy-microhei.ttc" "${srcdir}/deepintimdir/drive_c/windows/Fonts/wqy-microhei.ttc" | ||
msg "Copying latest TIM installer to ${srcdir}/deepintimdir/drive_c/Program Files/Tencent/ ..." | ||
install -m644 "${srcdir}/TIM${pkgver}.exe" "${srcdir}/deepintimdir/drive_c/Program Files/Tencent/" | ||
msg "Repackaging app archive ..." | ||
7z a -t7z -r "${srcdir}/files.7z" "${srcdir}/deepintimdir/*" | ||
} | ||
|
||
package() { | ||
msg "Preparing icons ..." | ||
install -d "${pkgdir}/usr/share" | ||
cp -a ${srcdir}/dpkgdir/usr/share/* "${pkgdir}/usr/share/" | ||
msg "Copying TIM to /opt/deepinwine/apps/Deepin-TIM ..." | ||
install -d "${pkgdir}/opt/deepinwine/apps/Deepin-TIM" | ||
install -m644 "${srcdir}/files.7z" "${pkgdir}/opt/deepinwine/apps/Deepin-TIM/" | ||
install -m644 "${srcdir}/reg.patch" "${pkgdir}/opt/deepinwine/apps/Deepin-TIM/" | ||
install -m755 "${srcdir}/run.sh" "${pkgdir}/opt/deepinwine/apps/Deepin-TIM/" | ||
install -m644 "${srcdir}/TIM$pkgver.exe" "${pkgdir}/opt/deepinwine/apps/Deepin-TIM/" | ||
7z x -aoa "${srcdir}/share.7z" -o"${srcdir}/" | ||
cp -a ${srcdir}/share/* "${pkgdir}/usr/share/" | ||
msg "Copying deepin files ..." | ||
install -d "${pkgdir}/opt/apps/${timpkgname}/files" | ||
install -m644 "${srcdir}/files.7z" "${pkgdir}/opt/apps/${timpkgname}/files/" | ||
cp ${srcdir}/dpkgdir/opt/apps/${debpkgname}/files/helper_archive* "${pkgdir}/opt/apps/${timpkgname}/files/" | ||
install -m755 "${srcdir}/dpkgdir/opt/apps/${debpkgname}/files/gtkGetFileNameDlg" "${pkgdir}/opt/apps/${timpkgname}/files/" | ||
md5sum "${srcdir}/files.7z" | awk '{ print $1 }' > "${pkgdir}/opt/apps/${timpkgname}/files/files.md5sum" | ||
install -m755 "${srcdir}/run.sh" "${pkgdir}/opt/apps/${timpkgname}/files/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.