summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD38
-rw-r--r--com.alibabainc.dingtalk.desktop13
-rw-r--r--dingtalk3
4 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bd742a209f5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = dingtalk-bin
+ pkgdesc = 钉钉
+ pkgver = 1.0.0.203
+ pkgrel = 1
+ url = https://gov.dingtalk.com
+ arch = x86_64
+ license = custom
+ provides = dingtalk
+ source = https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_1.0.0.203_amd64.deb
+ source = com.alibabainc.dingtalk.desktop
+ source = dingtalk
+ md5sums = 24ea8f14c8d5552d0b4aa616a4985155
+ md5sums = e1b984a024700a9ef5f77a1018a41f8e
+ md5sums = 0e255cd61852162548db96e46f1dda00
+
+pkgname = dingtalk-bin
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e192172af77
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: zhullyb <zhullyb [at] outlook dot com>
+# Contributor: Bruce Zhang <zttt183525594@gmail.com>
+
+pkgname=dingtalk-bin
+pkgver=1.0.0.203
+pkgrel=1
+pkgdesc="钉钉"
+arch=("x86_64")
+url="https://gov.dingtalk.com"
+license=("custom")
+depends=()
+options=()
+provides=('dingtalk')
+source=("https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_${pkgver}_amd64.deb"
+ "com.alibabainc.dingtalk.desktop"
+ "dingtalk")
+md5sums=('24ea8f14c8d5552d0b4aa616a4985155'
+ 'e1b984a024700a9ef5f77a1018a41f8e'
+ '0e255cd61852162548db96e46f1dda00')
+
+prepare(){
+ cd ${srcdir}
+ tar -Jxvf data.tar.xz -C "${srcdir}"
+}
+
+package(){
+ cd ${srcdir}
+
+ mkdir -p ${pkgdir}/opt/apps/com.alibabainc.dingtalk/files
+ mv opt/apps/com.alibabainc.dingtalk/files/* ${pkgdir}/opt/apps/com.alibabainc.dingtalk/files
+
+ mkdir -p ${pkgdir}/usr/bin
+ install -Dm 755 ${srcdir}/dingtalk ${pkgdir}/usr/bin/dingtalk
+
+ install -Dm644 com.alibabainc.dingtalk.desktop -t ${pkgdir}/usr/share/applications/
+
+ rm ${pkgdir}/opt/apps/com.alibabainc.dingtalk/files/*/libm.so.6
+}
diff --git a/com.alibabainc.dingtalk.desktop b/com.alibabainc.dingtalk.desktop
new file mode 100644
index 00000000000..21446e5e0ac
--- /dev/null
+++ b/com.alibabainc.dingtalk.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Categories=Chat;Network;
+Comment=DingTalk
+Exec=dingtalk %u
+GenericName=dingtalk
+Icon=/opt/apps/com.alibabainc.dingtalk/files/logo.svg
+Keywords=dingtalk;
+MimeType=x-scheme-handler/dingtalk;
+Name=DingTalk
+Name=DingTalk
+Name[zh_CN]=钉钉
+Type=Application
+X-Deepin-Vendor=user-custom
diff --git a/dingtalk b/dingtalk
new file mode 100644
index 00000000000..bd69acb3e9c
--- /dev/null
+++ b/dingtalk
@@ -0,0 +1,3 @@
+#!/bin/bash -e
+cd /opt/apps/com.alibabainc.dingtalk/files/*-Release*/
+LD_PRELOAD="/usr/lib/libnss3.so" ./com.alibabainc.dingtalk