void-packages/srcpkgs/wps-office/template
John 39a62db3c2 wps-office: revbump to "fix" some shlib problems
the package did list qt4 as a dependencie, even so it ships with qt4 itself
just revbump to make it obvious to users that they need to update
2021-02-02 17:03:20 +01:00

54 lines
1.7 KiB
Bash

# Template file for 'wps-office'
pkgname=wps-office
version=11.1.0.10161
revision=2
archs="x86_64"
create_wrksrc=yes
makedepends="rpmextract"
short_desc="Linux office suite with similar appearance to MS Office"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
# The old Kingsoft WPS Community License has disappeared from the
# site. There is an EULA in the archive which is instaled as license
# and a non-downloadable EULA which is accesible from inside the program:
# https://www.wps.com/eula?distsrc=2021help&lang=en_US&version=11.1.0.10161
license="custom:EULA"
homepage="http://wps-community.org"
changelog="http://linux.wps.com/wpslinuxlog.html"
checksum=d8d16c3eea4bb902c12a79866072754ee460adba16fcc79a1f52eae011cf462d
allow_unknown_shlibs=yes
nodebug=yes
restricted=yes
# The programs themselves are PIE, but the error reporter isn't :/
nopie=yes
_disturl=http://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/10161/
_distTar="${pkgname}-${version}.XA-1.x86_64.rpm"
distfiles="${_disturl}/${_distTar}"
do_install() {
cp -R ${wrksrc}/* ${DESTDIR}
}
post_install() {
# Clean up:
# Delete everything under /etc. It contains cron, logrotate and autostart
# configuration for the update check and a seperate menu category for the
# wps programs that does not work.
rm -rf ${DESTDIR}/etc
# Delete postinst and prerm scripts
rm -rf ${DESTDIR}/opt/kingsoft/wps-office/INSTALL
# Install license
vlicense ${DESTDIR}/opt/kingsoft/wps-office/office6/mui/default/EULA_linux.html
# Install privacy notice as documentation
vdoc ${DESTDIR}/opt/kingsoft/wps-office/office6/mui/default/Privacy_Linux.html
# Install third-party licenses
vlicense ${DESTDIR}/opt/kingsoft/wps-office/office6/thirdpartylegalnotices.txt
}