summaryrefslogtreecommitdiffstats
path: root/kde-workspace/Pkgfile
blob: c4f266cf4fd803efe8686979a1b84c96028a7388 (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
# Description: Programme de base de KDE4
# URL: http://www.kde.org
# Maintainer: KDE Project : https://projects.kde.org/projects/kde
# Packager: lesibel at free dot fr
# Depends on: cmake,automoc4,kdelibs,kdepimlibs,qimageblitz,xorg-libxtst,xorg-libxkbfile,pciutils,libraw1394,networkmanager,libusb-compat,consolekit,upower,udisks,lm_sensors,boost,akonadi,gpsd,polkit-kde,kde-l10n-fr,kactivities
# Run on: kdelibs,kdepimlibs,qimageblitz,xorg-libxtst,xorg-libxkbfile,pciutils,libraw1394,networkmanager,libusb-compat,consolekit,upower,udisks,lm_sensors,boost,akonadi,gpsd,polkit-kde,kde-l10n-fr,kactivities

name=kde-workspace
version=4.8.3
release=1
source=(ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.xz \
	kde.pam kde-np.pam kscreensaver.pam
)	

build() {
	cd $name-*

	# Bug de la version 4.6.2 
	sed -i "s|shutdown -p|shutdown -h|" kdm/config.def

        mkdir build
        cd build
        cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
		 -DCMAKE_BUILD_TYPE=Release \
		 -DCMAKE_SKIP_RPATH=ON \
		 -DWITH_Xmms=OFF \
                 -DWITH_Googlegadgets=OFF \
		 -DKDE_DEFAULT_HOME=.kde \
		 -DSYSCONF_INSTALL_DIR=/etc \
                 -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
		 -DPYTHON_EXECUTABLE=/usr/bin/python2                           
        make
        make DESTDIR=$PKG install
        cd ..
        sed -i "s/AllowRootLogin=false/AllowRootLogin=true/" \
        $PKG/usr/share/config/kdm/kdmrc
        sed -i "s/#Language=de_DE/Language=fr_FR/" $PKG/usr/share/config/kdm/kdmrc

	chown -R root:root $PKG
	mkdir -p $PKG/var/lib/kdm
	chown -R kdm:kdm $PKG/var/lib/kdm

	install -D -m644 $SRC/kde.pam $PKG/etc/pam.d/kde
	install -D -m644 $SRC/kde-np.pam $PKG/etc/pam.d/kde-np
	install -D -m644 $SRC/kscreensaver.pam $PKG/etc/pam.d/kscreensaver
}