blob: 3b911ac464b4703185d4891bc5095dd5e10553ce (
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
|
# Maintainer: Kimiblock Moe
pkgname=wechat
pkgver=17
pkgrel=1
epoch=1
pkgdesc="Fixes and optional sandbox for WeChat."
arch=('any')
url="https://github.com/Kraftland/portable"
license=('GPL3')
groups=()
options=(!debug !strip)
makedepends+=()
provides+=(wechat-uos-bwrap wechat-uos-qt wechat-universal-bwrap wechat-bwrap wechat-portable wechat-beta-bwrap wechat-sandbox-provider wechat-bwrap)
replaces+=(wechat-bwrap)
depends=("wechat-bin" "portable")
optdepends=()
makedepends+=()
checkdepends=()
source=(
portable-config
wechat.desktop
config.toml
)
md5sums=('530b90bc05c2d6ca8eb2d06ca486d934'
'c802c85de14a1c521a36083aa46208bc'
'ffa956450e7776afe8d69b60b240b30c')
function package() {
install -Dm644 portable-config \
"${pkgdir}/usr/lib/portable/info/com.tencent.wechat/config"
install -Dm644 config.toml \
"${pkgdir}/usr/lib/portable/info/com.tencent.wechat/config.toml"
install -d "${pkgdir}/usr/bin"
echo '''#!/usr/bin/bash
export _portableConfig="com.tencent.wechat"
export PORTABLE_CONF="com.tencent.wechat"
exec portable $@
''' >"${pkgdir}/usr/bin/wechat.sh"
chmod 755 "${pkgdir}/usr/bin/wechat.sh"
install -Dm644 \
"${srcdir}/wechat.desktop" \
"${pkgdir}/usr/share/applications/com.tencent.wechat.desktop"
install -d "${pkgdir}/usr/share/libalpm/hooks"
echo '''[Action]
When = PostTransaction
Exec = /usr/bin/bash -c "rm /usr/share/applications/wechat.desktop || true && ln -srf /usr/bin/wechat.sh /usr/bin/wechat"
Depends = wechat
Description = Configuring WeChat
[Trigger]
Operation = Install
Operation = Upgrade
Type = Path
Target = usr/bin/wechat
Target = usr/share/applications/wechat.desktop
Target = usr/share/applications/com.tencent.wechat.desktop''' >"${pkgdir}/usr/share/libalpm/hooks/wechat.hook"
}
|