summaryrefslogtreecommitdiffstats
path: root/kde/koffice/Pkgfile
blob: 3106f9950f8d0d641c8f94c952394c5bf1c5b7a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Description: Siuite office intégrée dans KDE
# URL: http://www.koffice.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: kdebase, kdepimlibs , kdegraphics, libwpg, wv2, glew, gsl, pstoedit, graphicsmagick, kipi-plugins, eigen2, fftw
# Run on: kdebase,kdepimlibs,kdegraphics,libwpg,wv2,glew,gsl,pstoedit,graphicsmagick,kipi-plugins,fftw

name=koffice
version=2.3.1
release=1
source=(ftp://ftp.kde.org/pub/kde/stable/$name-$version/$name-$version.tar.bz2 \
        ftp://ftp.kde.org/pub/kde/stable/$name-$version/$name-l10n/$name-l10n-fr-$version.tar.bz2)

build() {
	cd $name-$version
        cd ..
	mkdir build
        cd build
        cmake ../$name-l10n-fr-$version \
		-DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_INSTALL_PREFIX=/usr
        make
        make DESTDIR=$PKG install
        rm -r *
        cmake ../$name-$version \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_SKIP_RPATH=ON \
		-DCMAKE_BUILD_TYPE=Release
        make
        make DESTDIR=$PKG install
        for i in format-justify-center.png format-justify-fill.png \
        format-justify-left.png \
        format-justify-right.png \
        format-text-bold.png \
        format-text-italic.png \
        format-text-underline.png \
        object-group.png \
        object-order-back.png \
        object-order-front.png \
        object-order-lower.png \
        object-order-raise.png \
        object-ungroup.png
        do
                if [ -f $PKG//usr/share/icons/oxygen/16x16/actions/$i ]; then
                        rm $PKG//usr/share/icons/oxygen/16x16/actions/$i
                fi
        done
#        rm -r $PKG//usr/share/doc/HTML/en
}