summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSukanka2021-09-06 20:56:34 +0800
committerSukanka2021-09-06 20:56:34 +0800
commitf5b46dba5473c7950b18ad642f56f798d0fd8faa (patch)
tree4c0317f254deb83e2ab0218b42476c3bc3a891a8 /PKGBUILD
parenta08f37abc38020d0526ea4286195623283493b69 (diff)
downloadaur-f5b46dba5473c7950b18ad642f56f798d0fd8faa.tar.gz
remove unused exe,tidy path
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 34 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index af2d5cdc5be..832b613b3f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,9 +3,10 @@
# Contributor: Bruce Zhang <zttt183525594@gmail.com>
pkgname=dingtalk-bin
-_pkgname=com.alibabainc.dingtalk
+_pkgname=dingtalk
+_pkgname2=com.alibabainc.dingtalk
pkgver=1.0.0.285
-pkgrel=1
+pkgrel=2
pkgdesc="钉钉"
arch=("x86_64")
url="https://gov.dingtalk.com"
@@ -15,17 +16,18 @@ provides=('com.alibabainc.dingtalk' 'dingtalk')
conflicts=('com.alibabainc.dingtalk')
replaces=('com.alibabainc.dingtalk')
# https://tms.dingtalk.com/markets/dingtalk/service-terms-zh md5 will change per download
-source=("https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/${_pkgname}_${pkgver}_amd64.deb"
+source=("${_pkgname}_${pkgver}-${arch}.deb::https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/${_pkgname2}_${pkgver}_amd64.deb"
"service-terms-zh"
- "${_pkgname}.desktop"
+ "${_pkgname2}.desktop"
"dingtalk.sh")
+
# DebSource & pkgvere can be get here: https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Update/other/linux_dingtalk_update.json
-md5sums=('c55d666652ad08c3a2bd0e10b469426f'
- '55c7432e36da19b45102376dad9ebdf7'
- 'e1b984a024700a9ef5f77a1018a41f8e'
- '0e255cd61852162548db96e46f1dda00')
+sha512sums=('64de46104e438ea61c7148bfb88a22e4a40ce7c7f3854e1b469caa0989e0852f8bc2dce49e582ad8d08bdec66fa8be4a80902f748425f298ad1fab5d3a81bd64'
+ 'b83d493ed68be0f5a6b851fd93d819bb3a6e62feeb71a5bef10bad24b5ea8f3cf09deea4f31ed727449888a6eae1be99fa9cf263bc921cb8bb2958e2f37a7d64'
+ 'c8570ec4cd978e26ac622a83db053a0555324752f5000dc5b3cd680d782138e8ef856f09ec9b7850e04e1faa1e39de94dabeb16fbfbe0fd44af43247b30e8b2f'
+ '92216c292ebe74066a51552fce9b93aef3b9ca7d0e25e652852220d13999fc6ca2b7dd126836d375c13ed6bdd169073795f40ad1e0f2c63ea58db40a73deb4c2')
prepare(){
cd ${srcdir}
@@ -35,17 +37,36 @@ prepare(){
package(){
cd ${srcdir}
- mkdir -p ${pkgdir}/opt/apps/${_pkgname}/files
- mv opt/apps/${_pkgname}/files/* ${pkgdir}/opt/apps/${_pkgname}/files
+ mkdir -p ${pkgdir}/opt/${_pkgname}/release
+ mkdir -p ${pkgdir}/usr/share/doc/
+ mv opt/apps/${_pkgname2}/files/*-Release.*/* ${pkgdir}/opt/${_pkgname}/release
+ mv opt/apps/${_pkgname2}/files/version ${pkgdir}/opt/${_pkgname}
+ mv opt/apps/${_pkgname2}/files/doc/${_pkgname2} ${pkgdir}/usr/share/doc/${_pkgname}
# binary wrapper
install -Dm755 ${srcdir}/dingtalk.sh ${pkgdir}/usr/bin/dingtalk
# desktop enrty
- install -Dm644 ${_pkgname}.desktop -t ${pkgdir}/usr/share/applications/
+ install -Dm644 ${_pkgname2}.desktop -t ${pkgdir}/usr/share/applications/
+
+ # icons
+ install -Dm644 opt/apps/${_pkgname2}/files/logo.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg
# license
- install -Dm644 service-terms-zh ${pkgdir}/usr/share/licenses/${pkgname}/service-terms-zh
+ install -Dm644 service-terms-zh ${pkgdir}/usr/share/licenses/${_pkgname}/service-terms-zh.html
- rm ${pkgdir}/opt/apps/${_pkgname}/files/*/libm.so.6
+# ## libraries
+#
+# cd ${pkgdir}/opt/${_pkgname}/release
+# mkdir ${pkgdir}/opt/${_pkgname}/tmplib
+# mv {dingtalk*,libcef.so,libgraysdk.so,libahencrypt.so,libpangox-1.0.so.0,libgtkglext-x11-1.0.so.0,libgdkglext-x11-1.0.so.0,libutforpc.so} ${pkgdir}/opt/${_pkgname}/tmplib
+#
+#
+# ## remove unused files
+# rm -rf ${pkgdir}/opt/${_pkgname}/release/{libQt*,libm.so.6,imageformats,platforminputcontexts,platforms}
+# rm -rf ${pkgdir}/opt/${_pkgname}/release/lib*
+# mv ${pkgdir}/opt/${_pkgname}/tmplib/* ${pkgdir}/opt/${_pkgname}/release
+# rmdir ${pkgdir}/opt/${_pkgname}/tmplib
+ # dingtalk_updater
+ rm -rf ${pkgdir}/opt/${_pkgname}/release/{libm.so.6,Resources/{i18n/tool/*.exe,qss/mac}}
}