blob: e35a2d1b5edd4daf6b7450508f76353a007d99cc (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Maintainer: Kimiblock Moe
# Contributor: wszqkzqk
pkgname=wechat
pkgver=4.0.1.7
pkgrel=1
epoch=
pkgdesc="微信是一种生活方式. This is a repackage of the official WeChat which includes an optional sandbox support"
arch=('x86_64' 'aarch64' 'loong64')
url="https://weixin.qq.com/"
license=('LicenseRef-proprietary')
groups=()
options=(!debug !strip)
makedepends+=()
provides+=(wechat-uos wechat-bin wechat-universal)
conflicts+=(wechat-uos wechat-bin wechat-universal)
replaces+=("wechat-bin")
depends=(
"nss"
"xcb-util-renderutil"
"xcb-util-keysyms"
"xcb-util-image"
"xcb-util-wm"
"libxkbcommon-x11"
"libxkbcommon"
"libxcb"
"util-linux"
"libxcb"
"gcc-libs"
"nspr"
"bzip2"
"glibc"
"zlib"
"libxcomposite"
"glib2"
"libxrender"
"libxext"
"alsa-lib"
"dbus"
"libxrandr"
"fontconfig"
"pango"
"freetype2"
"libxfixes"
"cairo"
"libx11"
"expat"
"libvlc"
"libjack.so"
"libxdamage"
"libdrm"
"mesa"
"bash"
"lsb-release"
"psmisc"
)
optdepends=(
"wechat-sandbox-provider: Sandbox support"
'ttf-twemoji: An emoji font that will work with WeChat'
'at-spi2-core: accessibility'
'orca: screen reader'
'libpulse'
'libglvnd'
)
makedepends+=(
"libarchive"
)
checkdepends=()
source=(
wechat.sh
wechat.desktop
wechat.svg
)
source_x86_64=(
wechat-x86-${pkgver}.deb::"https://pro-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.wechat/com.tencent.wechat_${pkgver}_amd64.deb"
)
source_aarch64=(
wechat-arm-${pkgver}.deb::"https://pro-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.wechat/com.tencent.wechat_${pkgver}_arm64.deb"
)
source_loong64=(
wechat-loong64-${pkgver}.deb::"https://pro-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.wechat/com.tencent.wechat_${pkgver}_arm64.deb"
)
md5sums=('289f5a646504a8ac5a9ab6a2dcff969a'
'caa351d13a96f34bee10ed171e7d520d'
'468e0367346707c026e577e7bf3e3a82')
md5sums_x86_64=('ed17e297694a869073a4880d7f820703')
md5sums_aarch64=('15e9b016912a1f040ee5f818d3f21ba0')
md5sums_loong64=('15e9b016912a1f040ee5f818d3f21ba0')
function pkgver() {
tar -xf control.tar.xz ./control
cat control | grep 'Version: ' | cut -c '10-'
}
function package_wechat() {
tar -xf data.tar.xz ./opt
cp -r opt \
"${pkgdir}/"
install -Dm644 wechat.desktop \
"${pkgdir}/usr/share/applications/com.qq.weixin.desktop"
install -Dm755 wechat.sh \
"${pkgdir}/usr/bin/wechat.sh"
install -Dm644 wechat.svg \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/wechat.svg"
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
echo "https://www.wechat.com/us/service_terms.html" \
>"${pkgdir}/usr/share/licenses/${pkgname}/ToS.txt"
}
|