Commit 4bd91598 authored by Sukanka's avatar Sukanka

change upstream to uos

parent c9423914
pkgbase = wechat-uos
pkgdesc = wechat
pkgdesc = 微信官方原生桌面版 WeChat desktop
pkgver = 2.1.1
pkgrel = 1
pkgrel = 2
epoch = 2
url = https://weixin.qq.com/
arch = x86_64
license = ISC
depends = electron
depends = bubblewrap
depends = lsb-release
options = !strip
source = wechat-2.1.1.deb::http://archive.ubuntukylin.com/ubuntukylin/pool/partner/weixin_2.1.1_amd64.deb
source = wechat-2.1.1.deb::https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.weixin/com.tencent.weixin_2.1.1_amd64.deb
source = wechat.sh
sha512sums = 8edd4439f1823291fa827b0a48769f618271b66cdd39d6aa5fe41c84e84d04c305b880104aff110ae173178b202294d44321337e89a3d1d6d5086c548f291eca
sha512sums = f2f2f789d1d02c0fd5acbd9a77c1a52c02c2fc8a1a5690d18c673357b80ca684532e3d752594b39ff945b45a9fc9a6733e67395a12e825398f010ec50e05387f
source = license.tar.gz
sha512sums = 35403a3b0033cfba23c2b3d6a0ea2ece4df6e78eb6c2184a0f7a8eb9c2ffe4f581874839e71100e886a86284c3e016c084e0d06e592a8f83cc3858d9476c97d0
sha512sums = 6d94ef476de859d35c88fc8437429a405e3d17abbce3b81b1e2ce726a11ee763e0c9bda5bce22c1f6ea5b5b35653741725a4ff12a944d912db993f3e22c452b6
sha512sums = d6a2cc365ff513b1adb69c71e60433ec8cde80fb41c12a614a65cd22f220b9175d930c38d2b4babde7b93ea76b23e0cf094a426555a9376fbcd9c31f21e79ed5
pkgname = wechat-uos
# Maintainer: DuckSoft <realducksoft at gmail dot com>
# Maintainer: sukanka <su975853527 at gmail dot com>
# Contributor: sihuan <sihuan at sakuya.love>
# Contributor: Nick Cao <nickcao at nichi dot co>
pkgname=wechat-uos
_pkgname=wechat
pkgver=2.1.1
pkgrel=1
pkgrel=2
epoch=2
pkgdesc="wechat"
pkgdesc="微信官方原生桌面版 WeChat desktop"
arch=('x86_64')
url="https://weixin.qq.com/"
license=('ISC')
depends=(electron bubblewrap )
source=("${_pkgname}-${pkgver}.deb::http://archive.ubuntukylin.com/ubuntukylin/pool/partner/weixin_${pkgver}_amd64.deb"
depends=(electron bubblewrap lsb-release )
source=("${_pkgname}-${pkgver}.deb::https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.weixin/com.tencent.weixin_2.1.1_amd64.deb"
"wechat.sh"
"license.tar.gz"
)
sha512sums=('8edd4439f1823291fa827b0a48769f618271b66cdd39d6aa5fe41c84e84d04c305b880104aff110ae173178b202294d44321337e89a3d1d6d5086c548f291eca'
'f2f2f789d1d02c0fd5acbd9a77c1a52c02c2fc8a1a5690d18c673357b80ca684532e3d752594b39ff945b45a9fc9a6733e67395a12e825398f010ec50e05387f')
sha512sums=('35403a3b0033cfba23c2b3d6a0ea2ece4df6e78eb6c2184a0f7a8eb9c2ffe4f581874839e71100e886a86284c3e016c084e0d06e592a8f83cc3858d9476c97d0'
'6d94ef476de859d35c88fc8437429a405e3d17abbce3b81b1e2ce726a11ee763e0c9bda5bce22c1f6ea5b5b35653741725a4ff12a944d912db993f3e22c452b6'
'd6a2cc365ff513b1adb69c71e60433ec8cde80fb41c12a614a65cd22f220b9175d930c38d2b4babde7b93ea76b23e0cf094a426555a9376fbcd9c31f21e79ed5')
options=(!strip)
prepare() {
cd ${srcdir}
tar -Jxvf data.tar.xz -C "${srcdir}"
cp -rf $srcdir/opt/apps/com.tencent.weixin/files/weixin $srcdir/opt
rm -rf usr/lib
cd ${srcdir}/usr/share/applications/
sed -i "3c Exec=wechat %U" weixin.desktop
echo "Keywords=wechat;weixin;" >> weixin.desktop
}
package(){
cd $srcdir
mv etc usr ${pkgdir}
mv usr $pkgdir
mkdir -p ${pkgdir}/usr/lib/license
mv opt/weixin/resources/app ${pkgdir}/usr/lib/wechat
install -Dm755 wechat.sh ${pkgdir}/usr/bin/wechat
cd ${pkgdir}/usr/share/applications/
sed -i "4c Exec=wechat %U" weixin.desktop
echo "Keywords=wechat;weixin;" >> weixin.desktop
mv license/usr/lib/license ${pkgdir}/usr/lib/${_pkgname}
mkdir -p ${pkgdir}/usr/share/${_pkgname}
mv license/etc ${pkgdir}/usr/share/${_pkgname}
mv license/var ${pkgdir}/usr/share/${_pkgname}
}
# vim: ts=2 sw=2 et:
File added
#!/usr/bin/sh
bwrap --dev-bind / / \
--bind /etc/lsb-release-ukui /etc/lsb-release \
electron /usr/lib/wechat "$@"
--bind /usr/share/wechat/etc/os-release /etc/os-release \
--bind /usr/share/wechat/etc/lsb-release /etc/lsb-release \
--bind /usr/lib/wechat/license/ /usr/lib/license/ \
--bind /usr/share/wechat/var/ /var/ \
electron /usr/lib/wechat "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment