updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / redoffice / PKGBUILD
blob80fba14b7051e0ca3aa5e87509791e12dd877a58
1 # Contributor: Figo.zhang <figo1802@gmail.com>
3 pkgname=redoffice
4 pkgver=5.0
5 pkgrel=2
6 pkgdesc="Redoffice Office suite (Chinese verison)"
7 arch=('i686')
8 url="http://www.redoffice.com"
9 license=('GPL')
10 depends=()
11 source=(http://202.10.79.86/RO50ForLinBeta.tar.gz)
12 md5sums=('8b3e6f2cee7d039164ca6864ff3c2912')
13 conflicts=()
14 install=redoffice.install
16 build() {
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