blob: 3463c31e746af22b9b03787c8e3baf70919541f2 (
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
|
# Maintainer: zhuangzhuang <xufengyuan20080802@outlook.com>
# Maintainer: Sam L. Yes <samlukeyes123 at gmail dot com>
pkgname=com.qq.weixin.spark
pkgver=3.9.7deepin5
pkgrel=1
pkgdesc="Tencent WeChat Client from Spark Store"
arch=('x86_64')
_arch=all
url="https://weixin.qq.com/"
license=('unknown')
depends=(
'bash'
'hicolor-icon-theme'
'glibc'
'libx11'
'libxext'
'deepin-wine8-stable'
# 'deepin-wine-helper'
'spark-dwine-helper'
# 'wine'
'xdg-utils'
)
optdepends=(
'wqy-microhei: Recommended font'
'wqy-zenhei: Recommended font'
)
conflicts=('com.qq.weixin.dcs')
replaces=('com.qq.weixin.dcs')
# install=wechat.install
_mirror="https://cdn.d.store.deepinos.org.cn"
# _mirror="https://mirrors.sdu.edu.cn/spark-store-repository" # SDU mirror, sometimes outdated
source=("${_mirror}/store/chat/${pkgname}/${pkgname}_${pkgver}_${_arch}.deb")
b2sums=('37cc36b40974fdf65b610276f00a226284f1e733e59153dba4327a1dc572f1e8e2d373519e4d0d723600c02164374b25b6b96bb4ea1095b4aed25eddaba80e4e')
package() {
cd "${pkgdir}"
bsdtar -xpvf "${srcdir}/data.tar.xz"
install -d usr/share
mv opt/apps/${pkgname}/entries/* usr/share
# sed -i 's/"deepin-wine8-stable"/"wine"/' opt/apps/${pkgname}/files/run.sh
sed -i 's/WeChat.exe/wechat.exe/' usr/share/applications/${pkgname}.desktop
rmdir opt/apps/${pkgname}/entries/
rm opt/apps/${pkgname}/info
chown -R root:root .
}
|