blob: 3325529cad12d7e7c90344e1ef2184357ec11c27 (
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
# Maintainer: Kimiblock Moe
pkgname=(wechat-uos-bwrap wechat-uos-qt wechat-key-block)
pkgver=1.0.0.241
pkgrel=34
epoch=
pkgdesc="WeChat Qt, the so-called universal version"
arch=('x86_64' 'aarch64' 'loong64')
url="https://weixin.qq.com/"
license=('LicenseRef-proprietary')
groups=()
options=(!debug !strip lto)
makedepends+=(
"ninja"
"cmake"
)
depends=(
"xdg-user-dirs"
"xorg-xhost"
"findutils"
"zenity"
"xdg-dbus-proxy"
"nss"
"bubblewrap"
"xcb-util-renderutil"
"xcb-util-keysyms"
"xcb-util-image"
"xcb-util-wm"
"libxkbcommon-x11"
"libxkbcommon"
"libxcb"
"util-linux"
"openssl-1.1"
"libxcb"
"gcc-libs"
"nspr"
"bzip2"
"glibc"
"zlib"
"libxcomposite"
"glib2"
"wayland"
"libxrender"
"libxext"
"alsa-lib"
"dbus"
"libxrandr"
"fontconfig"
"pango"
"freetype2"
"libxfixes"
"cairo"
"libx11"
"expat"
"at-spi2-core"
"libxdamage"
"libdrm"
"mesa"
"hicolor-icon-theme"
"bash"
"lsb-release"
"psmisc"
"wmctrl"
"flatpak-xdg-utils"
)
optdepends=(
'wechat: The meta package'
'ttf-twemoji: An emoji font that will work with WeChat'
'at-spi2-core: accessibility'
'orca: screen reader'
)
makedepends+=(
"libarchive"
)
checkdepends=()
replaces=("wechat-universal-bwrap" "wechat-beta-bwrap")
source=(
wechat.sh
wechat-uos-qt.desktop
wechat-uos-qt.svg
open.sh
license.tar.gz
user-dirs.dirs
wechat.env
keyBlocker.cpp
CMakeLists.txt
mimeapps.list
flatpak-info
)
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=('67f3225a175416b7aea335710c0829f2'
'5c4a2dd36966cecc3ac48a07a4e98cc5'
'468e0367346707c026e577e7bf3e3a82'
'b48d860c2d03ddb4ffa609fcd5fe6857'
'6b159c6e9d21a98925489bc37a9aea43'
'38e98220da64adc1d8f9dc17d04b3a39'
'629807ee393cd29e5a0e57b51dfae9e9'
'6206b9cfc311c4763876419aaf78acad'
'83c934cd928c7411c3b8e7d4e86fb52c'
'e821fd2d05d6d39c7ecf118916922414'
'e472d6dd49522bc90fdaf0b4adcdb744')
md5sums_x86_64=('2c2c8ec69b6b798b7ccaf873e27d977a')
md5sums_aarch64=('c4d443515fe76ec35e792d43e9521887')
md5sums_loong64=('c4d443515fe76ec35e792d43e9521887')
function build() {
cd "${srcdir}"
mkdir key-block -p
cd key-block
cp "${srcdir}"/{keyBlocker.cpp,CMakeLists.txt} "${srcdir}"/key-block/
cmake -S . -B build -G "Ninja"
cmake --build build
}
function package_wechat-key-block() {
license=("CC-BY-SA-4.0")
url="https://alampy.com/2024/07/15/block-hotkeys-for-wechat-uos/"
pkgdesc="Block WeChat's hotkeys"
install -Dm755 "${srcdir}"/key-block/build/keyBlocker.so \
"${pkgdir}/usr/lib/wechat-uos-qt/keyBlocker.so"
}
function package_wechat-uos-qt() {
conflicts=()
replaces+=(wechat-universal-bwrap wechat-beta-bwrap wechat-uos-bwrap)
tar -xf data.tar.xz ./opt/apps/com.tencent.wechat
mkdir -p "${pkgdir}"/opt
cp -r opt/apps/com.tencent.wechat \
"${pkgdir}"/opt/wechat-uos-qt
install -Dm644 wechat-uos-qt.desktop \
"${pkgdir}/usr/share/applications/wechat-uos-qt.desktop"
install -Dm755 wechat.sh \
"${pkgdir}/usr/bin/wechat-uos-qt"
install -Dm644 user-dirs.dirs \
"${pkgdir}/usr/lib/wechat-uos-qt/user-dirs.dirs"
install -Dm755 open.sh \
"${pkgdir}/usr/lib/wechat-uos-qt/open"
install -Dm644 wechat.env \
"${pkgdir}/usr/lib/wechat-uos-qt/envs"
install -Dm644 wechat-uos-qt.svg \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/wechat-uos-qt.svg"
install -Dm644 mimeapps.list \
"${pkgdir}/usr/lib/wechat-uos-qt/mimeapps.list"
mkdir -p \
"${pkgdir}/usr/share/wechat-uos-qt/license"
install -d "${pkgdir}/usr/lib/license"
chmod 0755 "${pkgdir}/usr/lib/license" -R
cp "${srcdir}/license"/* -r "${pkgdir}/usr/share/wechat-uos-qt/license"
chmod 0755 -R "${pkgdir}/usr/share/wechat-uos-qt/license"
install -d "${pkgdir}/usr/share/licenses/${pkgname}/"
echo "https://www.wechat.com/us/service_terms.html" \
>"${pkgdir}/usr/share/licenses/${pkgname}/ToS.txt"
install -Dm644 "${srcdir}/flatpak-info" \
"${pkgdir}/usr/lib/wechat-uos-qt/flatpak-info"
}
function package_wechat-uos-bwrap() {
conflicts=()
depends+=(wechat-uos-qt)
install -d "${pkgdir}/usr/share/licenses/${pkgname}/"
echo "https://www.wechat.com/us/service_terms.html" >"${pkgdir}/usr/share/licenses/${pkgname}/ToS.txt"
}
|