summaryrefslogtreecommitdiffstats
path: root/kde/kdebase-workspace/Pkgfile
blob: 5bd6aaae4aede60c9961b80a338748edc106bc22 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Description: Programme de base de KDE4
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: xorg-libxkbfile,kdebase-runtime, xorg-libxscrnsaver, xorg-libxtst,  shared-mime-info, kdelibs, kdepimlibs, libvorbis, libogg, audiofile, alsa-utils, qimageblitz, lm_sensors, libxklavier, libcaptury, consolekit, networkmanager, libraw1394, docbook-xsl
# Run on: kdebase-runtime,xorg-libxscrnsaver,shared-mime-info,kdelibs,kdepimlibs,libvorbis,libogg,audiofile,alsa-utils,qimageblitz,lm_sensors,libxklavier,libcaptury,consolekit,networkmanager,libraw1394

name=kdebase-workspace
version=4.6.0
release=2
source=(ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.bz2 \
	lxde.desktop ede.desktop Xsession.kde4 \
	http://nutyx.meticul.eu/files/kdm-nutyx-attapu.1.tar.bz2 \
	http://nutyx.meticul.eu/files/nutyx-attapu-ksplash.tar.gz \
	http://nutyx.meticul.eu/files/Attapu.tar.bz2 )

build() {
	# unset MAKEFLAGS
	# En attendant mieux ....
	sed -i "s/1.75.2/1.76.1/" /usr/share/apps/ksgmltools2/customization/kde-include-common.xsl
	sed -i "s/1.75.2/1.76.1/" /usr/share/apps/ksgmltools2/customization/kde-include-man.xsl

        mkdir -v -p $PKG/etc/kde

        cd $name-*
        mkdir build
        cd build
        cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
		 -DCMAKE_BUILD_TYPE=Release \
		 -DCMAKE_SKIP_RPATH=ON \
		 -DWITH_Xmms=OFF \
                 -DWITH_Googlegadgets=ON \
                 -DWITH_PolkitQt=OFF
        make
        make DESTDIR=$PKG install
        cd ..
        install -m644 ../{ede.desktop,lxde.desktop} \
        $PKG/usr/share/apps/kdm/sessions/
        install -m755 ../Xsession.kde4 \
        $PKG/usr/share/config/kdm/Xsession
	chown -R 0:0 ../kdm-nutyx
	cp -a ../kdm-nutyx \
	$PKG/usr/share/apps/kdm/themes/
        sed -i "s/AllowRootLogin=false/AllowRootLogin=true/" \
        $PKG/usr/share/config/kdm/kdmrc
        sed -i "s/oxygen-air/kdm-nutyx/" $PKG/usr/share/config/kdm/kdmrc
        sed -i "s/xdm.pid/kdm.pid/" $PKG/usr/share/config/kdm/kdmrc
        sed -i "s/#Language=de_DE/Language=fr_FR/" $PKG/usr/share/config/kdm/kdmrc

        mv  $PKG/usr/share/config/kdm/kdmrc $PKG/etc/kde/kdmrc
        ln -sv /etc/kde/kdmrc $PKG/usr/share/config/kdm/kdmrc
	mv ../Attapu $PKG/usr/share/wallpapers/ 
# ksplash also quite dirty
	rm -r $PKG/usr/share/apps/ksplash/Themes/Default
	cp -a ../nutyx-attapu \
	$PKG/usr/share/apps/ksplash/Themes/
	ln -sv nutyx-attapu \
	$PKG/usr/share/apps/ksplash/Themes/Default
	chown -R root:root $PKG
#	mv $PKG/usr/etc/* $PKG/etc/
#	rm -r $PKG/usr/etc
	mkdir -p $PKG/var/lib/kdm
	chown -R kdm:kdm $PKG/var/lib/kdm
}