blob: edd4303e55ba57d2c619cf2e688d02e79e6b7430 (
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
|
# Maintainer: Jove Yu <yushijun110@126.com>
# Contribuor: luosoy <249799588@qq.com>
pkgname=com.qq.weixin.deepin
_appname=WeChat
_pkgname="Deepin-${_appname}"
pkgver=3.9.10deepin6
pkgrel=1
pkgdesc="Deepin Wine WeChat"
arch=('x86_64')
url="http://pc.weixin.qq.com/"
_imdevurl="https://deepin-wine.i-m.dev/"
license=('LicenseRef-Proprietary')
conflicts=(
'deepin-wine-wechat'
'com.qq.weixin.spark'
'com.qq.weixin.mejituu'
)
depends=(
'deepin-wine8-stable'
'deepin-wine-helper'
'xdg-utils'
'libldap24'
'wqy-microhei'
)
makedepends=(
'p7zip'
)
install="${pkgname}.install"
source=(
"${pkgname}-${pkgver}.deb::https://community-store-packages.deepin.com/appstore/pool/appstore/c/${pkgname}/${pkgname}_${pkgver}_amd64.deb"
"LICENSE.html"
"${pkgname}.sh"
)
sha256sums=('04e582b3eb79392f9ffced5acb63c0f4a6d65d1a1e6e86cc079d6884e11539a2'
'ad20820e5436c46685d4c3c2dadfb7eccf04ecbc9a6e2fb563370cc8901d4d3f'
'1b8cce1330dddca7b4fd31452052a79e024f9382fffcee0b2c35e515bcb8569b')
build() {
sed -e "
s/@bottlename@/${_pkgname}/g
s/@appver@/${pkgver}/g
s/@appname@/${_appname}/g
s/@pkgname@/${pkgname}/g
" -i "${srcdir}/${pkgname}.sh"
bsdtar -xf "${srcdir}/data."*
install -Dm755 -d "${srcdir}/tmp"
7z x -aoa "${srcdir}/opt/apps/${pkgname}/files/files.7z" -o"${srcdir}/tmp"
sed -i '753,756d' "${srcdir}/tmp/user.reg"
7z u "${srcdir}/opt/apps/${pkgname}/files/files.7z" "${srcdir}/tmp/user.reg"
sed -e "
s/\"\/opt\/apps\/${pkgname}\/files\/run.sh\"/${pkgname}/g
s/=chat;/=Network;/g
" -i "${srcdir}/opt/apps/${pkgname}/entries/applications/${pkgname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
cp -Pr --no-preserve=ownership "${srcdir}/opt" "${pkgdir}"
install -Dm644 "${srcdir}/opt/apps/${pkgname}/entries/applications/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/opt/apps/${pkgname}/entries/icons/hicolor/48x48/apps/${pkgname}.svg" -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|