diff options
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | yozo-office.install | 23 |
3 files changed, 24 insertions, 28 deletions
@@ -1,25 +1,32 @@ pkgbase = yozo-office pkgdesc = 永中办公 2019 | Yozo Office 2019 - An M$ Office Compatible Office Suite pkgver = 8.0.1331.101ZH.S1 - pkgrel = 2 + pkgrel = 3 url = https://www.yozosoft.com/product-officelinux.html arch = x86_64 - license = custom + license = custom: yozo options = !strip - source_x86_64 = https://dl.yozosoft.com/portal-download/fileManager/PRODUCT/yozo-office_8.0.1331.101ZH.S1_amd64.deb - sha256sums_x86_64 = 0896ca9d4b7163e769ba0be0da0862ed4322dabb18909a3309822832d0047d8f + source = https://dl.yozosoft.com/yozo/project/file/20210415_094030_900850/yozo-office_8.0.1331.101ZH.S1_amd64.deb + sha256sums = 0896ca9d4b7163e769ba0be0da0862ed4322dabb18909a3309822832d0047d8f pkgname = yozo-office install = yozo-office.install - depends = java-runtime=8 + depends = glibc>=2.3 + depends = libx11 + depends = libxext + depends = libxi depends = libxt + depends = libxtst depends = libxmu - depends = gtk2 - depends = libglvnd - optdepends = ttf-ms-fonts: Arial, Times, Courier etc. - optdepends = ttf-ms-win10-zh_cn: SimSun, SimHei, MSYH, Tahoma etc. + depends = libxau + depends = libcups + depends = libxcb optdepends = yozo-office-fonts: UI Fonts + optdepends = yozo-office-templates: Built-in Document Templates pkgname = yozo-office-fonts - pkgdesc = 永中办公界面字体 | UI Fonts provided by Yozo Office 2019 + pkgdesc = 永中办公界面字体 | UI Fonts for Yozo Office 2019 + +pkgname = yozo-office-templates + pkgdesc = 永中办公内置模板 | Yozo Office 2019 Built-in Document Templates @@ -38,7 +38,7 @@ package_yozo-office() { 'libxtst' 'libxmu' 'libxau' 'libcups' 'libxcb') optdepends=('yozo-office-fonts: UI Fonts' 'yozo-office-templates: Built-in Document Templates') - # install=${pkgname}.install + install=${pkgname}.install # Copy to pkgdir cd "${srcdir}"/temp diff --git a/yozo-office.install b/yozo-office.install index fa2b1af257af..c0aae4ec522a 100644 --- a/yozo-office.install +++ b/yozo-office.install @@ -1,10 +1,6 @@ +#!/bin/sh pre_install() { - echo "$1" - echo "$0" - echo "$2" - echo "$3" - - if [ "$1" = "install" ]; then + if [ "$1" = "8.0.1331.101ZH.S1-3" ]; then if ! pacman -Qs yozo-office | grep -qi 'local'; then if [ -f /etc/Yozosoft/Yozo_Office/installinfo.cfg ]; then echo "Yozo Office is exist. Please uninstall Yozo Office, then install this office." @@ -17,7 +13,7 @@ pre_install() { fi fi - if [ "$1" = "upgrade" ]; then + if [ "$1" = "8.0.1331.101ZH.S1-3" ]; then if [ -f /opt/Yozosoft/Yozo_Office/System/doExit ]; then /opt/Yozosoft/Yozo_Office/System/doExit -check if [ $? -ne 0 ]; then @@ -38,12 +34,9 @@ post_install() { # fi #done # post_upgrade - echo "$0" - echo "$1" - echo "$2" - echo "$3" + target=/opt/Yozosoft/Yozo_Office - if [ "$1" = "configure" ]; then + if [ "$1" = "8.0.1331.101ZH.S1-3" ]; then if [ -z "$2" ]; then echo "Configuring system. Please wait a while." $target/Jre/bin/java -jar $target/System/configure.jar -i @@ -59,12 +52,8 @@ post_upgrade() { update-desktop-database -q &>/dev/null } pre_remove() { - echo "$1" - echo "$2" - echo "$3" - echo "$0" target=/opt/Yozosoft/Yozo_Office - if [ "$1" = "remove" ]; then + if [ "$1" = "8.0.1331.101ZH.S1-3" ]; then $target/System/doExit -check if [ $? -ne 0 ]; then echo "Yozo Office is running. Please stop Yozo Office, then uninstall." |