blob: b1ff155155341e2c1958d5140c06e0b0d20db39d (
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
|
# Maintainer: Jove Yu <yushijun110@126.com>
# Contribuor: luosoy <249799588@qq.com>
pkgname=com.qq.weixin.deepin
_appname=WeChat
_pkgname="Deepin-${_appname}"
pkgver=3.9.10deepin2
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=('dba3a8e6c68b01eebab0a347c77454fce1e8198d8775e26bdae7a7e5abeea05b'
'ad20820e5436c46685d4c3c2dadfb7eccf04ecbc9a6e2fb563370cc8901d4d3f'
'1b8cce1330dddca7b4fd31452052a79e024f9382fffcee0b2c35e515bcb8569b')
build() {
sed -e "s|@bottlename@|${_pkgname}|g" \
-e "s|@appver@|${pkgver}|g" \
-e "s|@appname@|${_appname}|g" \
-e "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 '753,756d' -i "${srcdir}/tmp/user.reg"
7z u "${srcdir}/opt/apps/${pkgname}/files/files.7z" "${srcdir}/tmp/user.reg"
sed "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 -r "${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}"
}
|