summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-07-06 17:14:23 +0800
committerUniversebenzene2019-07-06 17:14:23 +0800
commit130a8a7f14148053c2ea845762a3b556e6658995 (patch)
treebc87abc850f8425a133d9ba648967dcd0bc8667a
parent568b08713e0ebd3a4f3c847b8702bfbfc7393581 (diff)
downloadaur-130a8a7f14148053c2ea845762a3b556e6658995.tar.gz
Recover icons; Unapply patch
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD23
2 files changed, 18 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e353ac9e2b6..58c01d92730 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = wps-office
pkgdesc = Kingsoft Office (WPS Office) is an office productivity suite
pkgver = 11.1.0.8722
- pkgrel = 2
+ pkgrel = 3
url = http://wps-community.org/
install = wps-office.install
arch = x86_64
@@ -27,9 +27,7 @@ pkgbase = wps-office
conflicts = kingsoft-office
options = !emptydirs
source = http://kdl.cc.ksosoft.com/wps-community/download/8722/wps-office_11.1.0.8722_amd64.deb
- source = add_no_kdialog_variable.patch
sha1sums = 438cdd5057ebf16bff3b0b6b3a9f06fcfca9a3da
- sha1sums = 49ccf3e3d9c7c9c80294127ce063c56d2b57d7c4
pkgname = wps-office
diff --git a/PKGBUILD b/PKGBUILD
index 624398ec216..82e739943d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=wps-office
pkgver=11.1.0.8722
#_pkgver=8372
-pkgrel=2
+pkgrel=3
#_pkgrel=1
pkgdesc="Kingsoft Office (WPS Office) is an office productivity suite"
arch=('x86_64')
@@ -25,12 +25,12 @@ install=${pkgname}.install
#[[ "$CARCH" = "i686" ]] && _archext=x86 || _archext=x86_64
#source_i686=("http://kdl.cc.ksosoft.com/wps-community/download/${pkgver##*.}/wps-office_${pkgver}_i386.deb"
# 'add_no_kdialog_variable.patch')
-source=("http://kdl.cc.ksosoft.com/wps-community/download/${pkgver##*.}/wps-office_${pkgver}_amd64.deb"
- 'add_no_kdialog_variable.patch')
+source=("http://kdl.cc.ksosoft.com/wps-community/download/${pkgver##*.}/wps-office_${pkgver}_amd64.deb")
+# 'add_no_kdialog_variable.patch')
#sha1sums_i686=('60b1c9e33ee6fc1edcefe40dc9ec529d4a668825'
# 'dd8b5283ee17a88a3eb0531976abccd6e5e08c48')
-sha1sums=('438cdd5057ebf16bff3b0b6b3a9f06fcfca9a3da'
- '49ccf3e3d9c7c9c80294127ce063c56d2b57d7c4')
+sha1sums=('438cdd5057ebf16bff3b0b6b3a9f06fcfca9a3da')
+# '49ccf3e3d9c7c9c80294127ce063c56d2b57d7c4')
prepare() {
tar -Jxf data.tar.xz
@@ -41,7 +41,7 @@ prepare() {
# sed -i 's|/office6/${gApp} ${gOptExt}|/office6/${gApp} -style gtk+ ${gOptExt}|' wpp et
cd "${srcdir}"
- patch -Np1 -i "${srcdir}/add_no_kdialog_variable.patch"
+# patch -Np1 -i "${srcdir}/add_no_kdialog_variable.patch"
}
package() {
@@ -57,6 +57,17 @@ package() {
cd "${srcdir}/usr/bin"
install -m755 * "${pkgdir}/usr/bin"
+ cd ${srcdir}/usr/share/icons/hicolor
+
+ for _file in ./*
+ do
+ if [ -e ${_file}/mimetypes/wps-office2019-etmain.png ]
+ then
+ mkdir -p ${_file}/apps
+ cp ${_file}/mimetypes/wps-office2019* ${_file}/apps
+ fi
+ done
+
cd "${srcdir}"/usr/share
install -d "${pkgdir}/usr/share/applications"