1 # Contributor: Figo.zhang <figo1802@gmail.com>
6 pkgdesc="Redoffice Office suite (Chinese verison)"
8 url="http://www.redoffice.com"
11 source=(http://202.10.79.86/RO50ForLinBeta.tar.gz)
12 md5sums=('8b3e6f2cee7d039164ca6864ff3c2912')
14 install=redoffice.install
17 cd ${startdir}/src/zh-CN/RO/RedOffice/
18 mkdir -p ${pkgdir}/opt;
19 for i in *;do ar -xv $i ;tar -xvf data.tar.gz;done;
20 #ar -xv desktop-integration/*.deb;
21 #tar -xvf data.tar.gz;
22 mv -v {opt/,usr/} ${pkgdir}/ ;
23 ln -s /opt/redoffice5.0/program/soffice.bin ${pkgdir}/opt/redoffice5.0/program/redoffice.bin
25 cd ${pkgdir}/opt/redoffice5.0/share/xdg/
26 for i in *.desktop; do
27 sed -i "s/Categories=RedOffice/Categories=Office/g" $i; done;
29 rm ${pkgdir}/usr/share/applications/redoffice5.0-uninstall.desktop
30 rm ${pkgdir}/usr/share/applications/redoffice5.0-update.desktop