Commit 1f367ee3 authored by nanahira's avatar nanahira

Merge branch 'master' of https://aur.archlinux.org/wechat-uos

parents 50295612 ae476e04
pkgbase = wechat-uos pkgbase = wechat-uos
pkgdesc = 微信官方原生桌面版 WeChat desktop pkgdesc = 微信官方原生桌面版 WeChat desktop
pkgver = 2.1.2 pkgver = 2.1.2
pkgrel = 1 pkgrel = 2
epoch = 2 epoch = 2
url = https://weixin.qq.com/ url = https://weixin.qq.com/
arch = x86_64 arch = x86_64
...@@ -12,9 +12,11 @@ pkgbase = wechat-uos ...@@ -12,9 +12,11 @@ pkgbase = wechat-uos
options = !strip options = !strip
source = wechat-2.1.2.deb::https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.weixin/com.tencent.weixin_2.1.2_amd64.deb source = wechat-2.1.2.deb::https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.weixin/com.tencent.weixin_2.1.2_amd64.deb
source = wechat.sh source = wechat.sh
source = wechat-uos.desktop
source = license.tar.gz source = license.tar.gz
sha512sums = cb1b5ca8d18a73b8acae2d0c5518f1471451b35ef5a678ece37bca4d6a8e1ff04214d8b81a2dc23802d211245d96f907f2407c8a71b82e9270da5118597b443f sha512sums = cb1b5ca8d18a73b8acae2d0c5518f1471451b35ef5a678ece37bca4d6a8e1ff04214d8b81a2dc23802d211245d96f907f2407c8a71b82e9270da5118597b443f
sha512sums = 5a54b2362ad199951b1445bc075ae69770804e16708b1f7072f48be21112de3ce6e1a6feee15ec91522c4b48b4ff396a2b49bb83c0ad41aee3839ac093f8a169 sha512sums = 5a54b2362ad199951b1445bc075ae69770804e16708b1f7072f48be21112de3ce6e1a6feee15ec91522c4b48b4ff396a2b49bb83c0ad41aee3839ac093f8a169
sha512sums = d6a2cc365ff513b1adb69c71e60433ec8cde80fb41c12a614a65cd22f220b9175d930c38d2b4babde7b93ea76b23e0cf094a426555a9376fbcd9c31f21e79ed5 sha512sums = 68d31d9e7a6ee14d5cc330acf55d9905be86c4ac187279e33494bc479a60c078b38eef0fa7833ba9fda2b14978f212d8647dd609b6f3037b0133701fe8f5e72b
sha512sums = 8b9d70162a5a71584cf85a309da48730de9db03f49a7e9611de04441864be80267e53e3155f7856c87ed53f99def277d74132392816c4f07893a02e99043ed6c
pkgname = wechat-uos pkgname = wechat-uos
*.deb
*.zst
*/
...@@ -2,50 +2,58 @@ ...@@ -2,50 +2,58 @@
# Maintainer: sukanka <su975853527 at gmail dot com> # Maintainer: sukanka <su975853527 at gmail dot com>
# Contributor: sihuan <sihuan at sakuya.love> # Contributor: sihuan <sihuan at sakuya.love>
# Contributor: Nick Cao <nickcao at nichi dot co> # Contributor: Nick Cao <nickcao at nichi dot co>
# Contributor: Xuanwo <xuanwo@archlinuxcn.org>
pkgname=wechat-uos pkgname=wechat-uos
_pkgname=wechat _pkgname=wechat
pkgver=2.1.2 pkgver=2.1.2
pkgrel=1 pkgrel=2
epoch=2 epoch=2
pkgdesc="微信官方原生桌面版 WeChat desktop" pkgdesc="微信官方原生桌面版 WeChat desktop"
arch=('x86_64') arch=('x86_64')
url="https://weixin.qq.com/" url="https://weixin.qq.com/"
license=('ISC') license=('ISC')
depends=(bubblewrap lsb-release ) 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_${pkgver}_amd64.deb" source=(
"wechat.sh" "${_pkgname}-${pkgver}.deb::https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.tencent.weixin/com.tencent.weixin_${pkgver}_amd64.deb"
"license.tar.gz" # from https://aur.archlinux.org/packages/com.tencent.weixin # Bind files like os-release to wechat-uos works.
"wechat.sh"
"wechat-uos.desktop"
# We need the license key from uos to make wechat-uos works.
#
# from https://aur.archlinux.org/packages/com.tencent.weixin
"license.tar.gz"
) )
sha512sums=('cb1b5ca8d18a73b8acae2d0c5518f1471451b35ef5a678ece37bca4d6a8e1ff04214d8b81a2dc23802d211245d96f907f2407c8a71b82e9270da5118597b443f' sha512sums=('cb1b5ca8d18a73b8acae2d0c5518f1471451b35ef5a678ece37bca4d6a8e1ff04214d8b81a2dc23802d211245d96f907f2407c8a71b82e9270da5118597b443f'
'6991a31ff56d2fcb5fb088d47567b500134a5a075e1c7d6896a272d51f7210a461b03339635a989e9f4f799732125bc7ce98ae1f2ac35c449f3e9800a9b7991e' '6991a31ff56d2fcb5fb088d47567b500134a5a075e1c7d6896a272d51f7210a461b03339635a989e9f4f799732125bc7ce98ae1f2ac35c449f3e9800a9b7991e'
'd6a2cc365ff513b1adb69c71e60433ec8cde80fb41c12a614a65cd22f220b9175d930c38d2b4babde7b93ea76b23e0cf094a426555a9376fbcd9c31f21e79ed5') '68d31d9e7a6ee14d5cc330acf55d9905be86c4ac187279e33494bc479a60c078b38eef0fa7833ba9fda2b14978f212d8647dd609b6f3037b0133701fe8f5e72b'
'8b9d70162a5a71584cf85a309da48730de9db03f49a7e9611de04441864be80267e53e3155f7856c87ed53f99def277d74132392816c4f07893a02e99043ed6c')
options=(!strip) 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-uos %U" weixin.desktop
echo "Keywords=wechat;weixin;wechat-uos;" >> weixin.desktop
mv weixin.desktop ${pkgname}.desktop
chmod a-x ${pkgname}.desktop
}
package(){ package(){
cd $srcdir echo " -> Extracting the data.tar.xz..."
mv usr $pkgdir tar -Jxvf data.tar.xz -C "${pkgdir}"
mv ${pkgdir}/opt/apps/com.tencent.weixin/files/weixin/resources/app ${pkgdir}/usr/lib/${pkgname}
rm -rf ${pkgdir}/opt
mkdir -p ${pkgdir}/usr/lib/license
mv opt/weixin/resources/app ${pkgdir}/usr/lib/${pkgname} echo " -> Moving stuff in place..."
# Launcher
install -Dm755 wechat.sh ${pkgdir}/usr/bin/${pkgname} install -Dm755 wechat.sh ${pkgdir}/usr/bin/${pkgname}
mv license/usr/lib/license ${pkgdir}/usr/lib/${pkgname} echo " -> Fixing wechat desktop entry..."
mkdir -p ${pkgdir}/usr/share/${pkgname} rm $pkgdir/usr/share/applications/weixin.desktop
mv license/etc ${pkgdir}/usr/share/${pkgname} install -Dm644 ${pkgname}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop
mv license/var ${pkgdir}/usr/share/${pkgname}
echo " -> Fixing licenses"
# Move into pkg scoped dir to avoid conflict.
install -m 755 -d ${pkgdir}/usr/lib/${pkgname}
mv ${pkgdir}/usr/lib/license ${pkgdir}/usr/lib/${pkgname}
# Keep soname correct.
ln -sf /usr/lib/${pkgname}/license/libuosdevicea1.so ${pkgdir}/usr/lib/${pkgname}/license/libuosdevicea.so
install -m 755 -d ${pkgdir}/usr/lib/license
install -m 755 -d ${pkgdir}/usr/share/${pkgname}
cp -r license/etc ${pkgdir}/usr/share/${pkgname}
cp -r license/var ${pkgdir}/usr/share/${pkgname}
} }
# vim: ts=2 sw=2 et: # vim: ts=2 sw=2 et:
No preview for this file type
[Desktop Entry]
Name=微信
Exec=wechat-uos %U
Terminal=false
Type=Application
Icon=weixin
StartupWMClass=微信
Comment=微信桌面版
Categories=Utility;
Keywords=wechat;weixin;wechat-uos;
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