updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / kdebase4-workspace-git / PKGBUILD
blob9e488cf0e4a287ff1ba4de228c1e3893f118de24
1 pkgname=kdebase4-workspace-git
2 pkgver=20111026
3 pkgrel=1
4 pkgdesc="KDE4 Base Workspace Programs"
5 arch=('i686' 'x86_64')
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')
24 groups=('kde4-git')
26 _gitroot="git://anongit.kde.org/kde-workspace"
27 _gitname="kde-workspace"
29 build() {
30   cd $srcdir
31   msg "Connecting to the GIT server...."
32   
33   if [[ -d $srcdir/$_gitname ]] ; then
34     cd $_gitname
35     git pull origin
36     msg "The local files are updated."
37   else
38     git clone $_gitroot
39   fi
40   
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
46   fi
47   git clone $srcdir/$_gitname $srcdir/build
48   cd $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 \
57         -DWITH_Xmms=OFF \
58         -DWITH_Googlegadgets=OFF \
59         -DWITH_libgps=OFF \
60         -DWITH_OpenGLES=OFF \
61         -DKWIN_BUILD_WITH_OPENGLES=OFF
62   make
65 package() {
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