1 pkgname=kdebase4-workspace-git
4 pkgdesc="KDE4 Base Workspace Programs"
6 url="http://www.kde.org"
7 license=('GPL' 'LGPL' 'FDL')
8 depends=('kdepim4-runtime-git' 'lm_sensors' 'libraw1394' 'libqalculate' 'qimageblitz'
9 'polkit-kde-git' 'consolekit' 'xorg-xprop' 'libxdamage' 'libxklavier' 'libdmtx'
10 'xorg-xsetroot' 'libxcomposite' 'libxinerama' 'prison-git' 'kactivities-git')
11 makedepends=('git' 'pkgconfig' 'cmake' 'automoc4' 'boost' 'kdebindings-python')
12 source=('kdm-zsh-profile.patch' 'kdm' 'kde.pam' 'kde-np.pam' 'kscreensaver.pam'
13 'fixpath.patch' 'terminate-server.patch')
14 md5sums=('721e97031b62aee8914e8617e86f9235'
15 '363a36b63f84bac79959cfbefdb8309e'
16 '10a490653b002e6f9e7476ff9d37c011'
17 '552337fd9a3982d809ea16c7f0033d42'
18 '367a3538f54db71f108b34cfa31088ac'
19 '47a1f12673f66e62e2463efd7037a26a'
20 '814350c52c135d6f7bdada1e29223d38')
21 install="kdebase4-workspace-git.install"
22 provides=('kdebase-workspace')
23 conflicts=('kdebase-workspace')
26 _gitroot="git://anongit.kde.org/kde-workspace"
27 _gitname="kde-workspace"
31 msg "Connecting to the GIT server...."
33 if [[ -d $srcdir/$_gitname ]] ; then
36 msg "The local files are updated."
41 msg "GIT checkout done"
42 msg "Starting make..."
43 if [[ -d ${srcdir}/build ]]; then
44 msg "Cleaning the previous build directory..."
45 rm -rf ${srcdir}/build
47 git clone $srcdir/$_gitname $srcdir/build
49 patch -p0 -i ${srcdir}/kdm-zsh-profile.patch
50 patch -p0 -i ${srcdir}/fixpath.patch
51 patch -p0 -i ${srcdir}/terminate-server.patch
52 mkdir $srcdir/build/build
53 cd $srcdir/build/build
54 cmake ../ -DCMAKE_BUILD_TYPE=debugfull \
55 -DCMAKE_SKIP_RPATH=ON \
56 -DCMAKE_INSTALL_PREFIX=/usr \
58 -DWITH_Googlegadgets=OFF \
61 -DKWIN_BUILD_WITH_OPENGLES=OFF
66 cd ${srcdir}/build/build
67 make DESTDIR=${pkgdir} install
68 install -D -m755 ${srcdir}/kdm ${pkgdir}/etc/rc.d/kdm
69 install -D -m644 ${srcdir}/kde.pam ${pkgdir}/etc/pam.d/kde
70 install -D -m644 ${srcdir}/kde-np.pam ${pkgdir}/etc/pam.d/kde-np
71 install -D -m644 ${srcdir}/kscreensaver.pam ${pkgdir}/etc/pam.d/kscreensaver
72 install -d -m755 ${pkgdir}/usr/share/xsessions/
73 ln -sf /usr/share/apps/kdm/sessions/kde-plasma{,-safe}.desktop ${pkgdir}/usr/share/xsessions/
74 install -d -m755 ${pkgdir}/etc/kde/{env,shutdown}
75 install -d -g 135 -o 135 ${pkgdir}/var/lib/kdm