blob: baada55ba40e85a1080e58eb1c02a88400b8600d (
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=11
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=('6e5d2bd14439b5d1bd8c8e6e0fab7850'
'21b13aec8705319309c9e903e114c5b0'
'50297b0994298d8062365e99f598d244')
function package() {
install -Dm644 portable-config \
"${pkgdir}/usr/lib/portable/info/com.qq.weixin/config"
install -Dm644 config.toml \
"${pkgdir}/usr/lib/portable/info/com.qq.weixin/config.toml"
install -d "${pkgdir}/usr/bin"
echo '''#!/usr/bin/bash
export _portableConfig="com.qq.weixin"
export PORTABLE_CONF="com.qq.weixin"
portable $@
''' >"${pkgdir}/usr/bin/wechat.sh"
chmod 755 "${pkgdir}/usr/bin/wechat.sh"
install -Dm644 \
"${srcdir}/wechat.desktop" \
"${pkgdir}/usr/share/applications/com.qq.weixin.desktop"
install -d "${pkgdir}/usr/share/libalpm/hooks"
echo '''[Action]
When = PostTransaction
Exec = /usr/bin/bash -c "rm /usr/share/applications/wechat.desktop && 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.qq.weixin.desktop''' >"${pkgdir}/usr/share/libalpm/hooks/wechat.hook"
}
|