wps-office: update to 11.1.0.8372
This commit is contained in:
parent
2e4ef5fdf4
commit
31d2f7e629
@ -1,12 +1,14 @@
|
||||
# Template file for 'wps-office'
|
||||
pkgname=wps-office
|
||||
version=10.1.0.6758
|
||||
version=11.1.0.8372
|
||||
revision=1
|
||||
create_wrksrc=yes
|
||||
makedepends="rpmextract"
|
||||
short_desc="Linux office suite with similar appearance to MS Office"
|
||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||
homepage="http://wps-community.org"
|
||||
license="Kingsoft WPS Community License"
|
||||
#Full license is at: http://wps-community.org/license.md (Not downloadable)
|
||||
short_desc="Linux office suite with similar appearance to MS Office"
|
||||
homepage="http://wps-community.org"
|
||||
allow_unknown_shlibs=yes
|
||||
nodebug=yes
|
||||
restricted=yes
|
||||
@ -14,37 +16,30 @@ restricted=yes
|
||||
#The programs themselves are PIE, but the error reporter isn't :/
|
||||
nopie=yes
|
||||
|
||||
_disturl=http://kdl.cc.ksosoft.com/wps-community/download/6758
|
||||
_disturl=http://kdl.cc.ksosoft.com/wps-community/download/8372
|
||||
|
||||
archs="i686 x86_64"
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
_arch=x86_64
|
||||
checksum=f941ffd7cf9066c31f0d35f2b71cb62fa600da6502b50da5efde807a34f25abb
|
||||
checksum=f90b2c79853c2880ba07654b301e16e1da8d3096ac8345bb680c28eecdf88db4
|
||||
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
_arch=x86
|
||||
checksum=492f1f883c36310eb2694681d904daab7096ee8e7260a91e92d16ef62f24e8da
|
||||
_arch=i686
|
||||
checksum=da5c6937e58e4e87af3db7052bec9bf765b6e4cb024c2a1fbabe52f06aa09a1b
|
||||
fi
|
||||
|
||||
_distTar="${pkgname}_${version}_${_arch}.tar.xz"
|
||||
_distTar="${pkgname}-${version}-1.${_arch}.rpm"
|
||||
distfiles="${_disturl}/${_distTar}"
|
||||
|
||||
do_extract() {
|
||||
vmkdir "opt/kingsoft/wps-office"
|
||||
tar xvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_distTar}" -C "${DESTDIR}/opt/kingsoft/wps-office" --strip-components=1
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Install the wps-office suites
|
||||
vmkdir usr/bin
|
||||
vmkdir usr/share
|
||||
|
||||
_programs="wps wpp et"
|
||||
for prog in ${_programs}; do
|
||||
ln -fs /opt/kingsoft/wps-office/$prog ${DESTDIR}/usr/bin/$prog
|
||||
done
|
||||
mv ${DESTDIR}/opt/kingsoft/wps-office/resource/* ${DESTDIR}/usr/share/
|
||||
|
||||
#Clean up some things
|
||||
rm ${DESTDIR}/opt/kingsoft/wps-office/README.txt
|
||||
rm -rf ${DESTDIR}/opt/kingsoft/wps-office/resource
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user