blob: 7693feb851d1e4143146428b5171387b2d4952e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: asukaminato <i at asukaminato at eu dot org>
# Contributor: Codist <countstarlight@gmail.com>
# Contributor: Aron Young <tkf6fkt at gmail dot com>
pkgname=deepin-wine-tim
_pkgver=3.5.0
pkgver="$_pkgver".22143
_debpkgver=9.3.2deepin20
_debpkgname="com.qq.im.deepin"
_timpkgname="com.qq.office.deepin"
pkgrel=1
pkgdesc="Tencent TIM on Deepin Wine5(${_timpkgname}) For Archlinux"
arch=("x86_64")
url="https://tim.qq.com/"
license=('custom')
depends=('hicolor-icon-theme' 'bash' 'xdg-utils' 'p7zip' 'deepin-wine5' 'deepin-wine-helper>=5.1.30_1-1' '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="https://com-store-packages.uniontech.com"
source=("$_mirror/appstore/pool/appstore/c/${_debpkgname}/${_debpkgname}_${_debpkgver}_i386.deb"
"https://dldir1.qq.com/qqfile/qq/TIM${_pkgver}/TIM${pkgver}.exe"
"run.sh"
"share.7z")
md5sums=('5fdc20e614d945bd2ba5251420872479'
'17854f0e4cb447fafea775651628880b'
'04720b62f39562328b4685eaad349d11'
'479ae2a04a9c5dcc08c67c7b1395a944')
build() {
printf "Extracting DPKG package ...\n"
install -d "${srcdir}/dpkgdir"
tar -xvpf data.tar.xz -C "${srcdir}/dpkgdir"
printf "Extracting Deepin Wine QQ archive ...\n"
# https://sourceforge.net/p/sevenzip/bugs/2356/
7z x -aoa -snl "${srcdir}/dpkgdir/opt/apps/${_debpkgname}/files/files.7z" -o"${srcdir}/deepintimdir"
printf "Cleaning up the original package directory ...\n"
rm -r "${srcdir}/deepintimdir/drive_c/Program Files/Tencent/QQ"
printf "Creating font file link ...\n"
ln -sf "/usr/share/fonts/wenquanyi/wqy-microhei/wqy-microhei.ttc" "${srcdir}/deepintimdir/drive_c/windows/Fonts/wqy-microhei.ttc"
printf "Copying latest TIM installer to ${srcdir}/deepintimdir/drive_c/Program Files/Tencent/ ...\n"
install -m644 "${srcdir}/TIM${pkgver}.exe" "${srcdir}/deepintimdir/drive_c/Program Files/Tencent/"
printf "Repackaging app archive ...\n"
7z a -t7z -r "${srcdir}/files.7z" "${srcdir}/deepintimdir/*"
}
package() {
printf "Preparing icons ...\n"
install -d "${pkgdir}/usr/share"
7z x -aoa "${srcdir}/share.7z" -o"${srcdir}/"
cp -av ${srcdir}/share/* "${pkgdir}/usr/share/"
printf "Copying deepin files ...\n"
install -Dm644 "files.7z" -t "${pkgdir}/opt/apps/${_timpkgname}/files/"
md5sum "${srcdir}/files.7z" | awk '{ print $1 }' >"${pkgdir}/opt/apps/${_timpkgname}/files/files.md5sum"
install -Dm755 "run.sh" -t "${pkgdir}/opt/apps/${_timpkgname}/files/"
}
|