void-packages/srcpkgs/wps-office/template
2019-07-19 10:35:50 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'wps-office'
pkgname=wps-office
version=11.1.0.8722
revision=1
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>"
license="Kingsoft WPS Community License"
#Full license is at: http://wps-community.org/license.md (Not downloadable)
homepage="http://wps-community.org"
checksum=e898a1edcb53bc7c0bd3361e225c8475fc84d54d937eea53e7ef030f12a1345e
allow_unknown_shlibs=yes
nodebug=yes
restricted=yes
#The programs themselves are PIE, but the error reporter isn't :/
nopie=yes
_disturl=http://kdl.cc.ksosoft.com/wps-community/download/8722
_distTar="${pkgname}-${version}-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
}