updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / kdelibs4-git / PKGBUILD
blobfde87b2ab5327f98246c5cd3a6d2f7ec566fa153
1 pkgname=kdelibs4-git
2 pkgver=20111026
3 pkgrel=1
4 pkgdesc="KDE Core Libraries"
5 arch=('i686' 'x86_64')
6 url='http://www.kde.org'
7 license=('GPL' 'LGPL' 'FDL')
8 depends=('strigi-git' 'attica-git' 'libxss' 'xz' 'openssl' 'soprano-git' 'krb5'
9         'shared-desktop-ontologies' 'qca' 'libdbusmenu-qt-bzr' 'polkit-qt-git' 'grantlee'
10         'shared-mime-info' 'enchant' 'giflib' 'jasper' 'openexr' 'xdg-utils'
11         'phonon-git' 'hicolor-icon-theme' 'upower' 'udisks' 'libxcursor'
12         'docbook-xsl' 'herqq')
13 makedepends=('pkgconfig' 'cmake' 'automoc4' 'intltool' 'avahi' 'libgl'
14         'hspell')
15 conflicts=('kdelibs')
16 provides=('kdelibs')
17 groups=('kde4-git')
18 install='kdelibs4-git.install'
20 _gitroot="git://anongit.kde.org/kdelibs"
21 _gitname="kdelibs"
25 build() {
26   cd $srcdir
27   msg "Connecting to the GIT server...."
28   
29   if [[ -d $srcdir/$_gitname ]] ; then
30     cd $_gitname
31     git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot
35   fi
36   
37   msg "GIT checkout done"
38   msg "Starting make..."
39   if [[ -d ${srcdir}/build ]]; then
40     msg "Cleaning the previous build directory..."
41     rm -rf ${srcdir}/build
42   fi
43   mkdir $srcdir/build
44   cd $srcdir/build
45   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
46                 -DCMAKE_INSTALL_PREFIX=/usr \
47                 -DCMAKE_SKIP_RPATH=ON \
48                 -DKDE_DISTRIBUTION_TEXT='Arch Linux' \
49                 -DSYSCONF_INSTALL_DIR=/etc \
50                 -DHTML_INSTALL_DIR=/usr/share/doc/kde/html \
51                 -DKDE_DEFAULT_HOME='.kde4git' \
52                 -DWITH_FAM=OFF \
53                 -DBUILD_libkactivities:BOOL="0" 
54   make
57 package() {
58   cd ${srcdir}/build
59   make DESTDIR=${pkgdir} install
60   rm -f $pkgdir/usr/share/apps/kssl/ca-bundle.crt
61   ln -sf /etc/ssl/certs/ca-certificates.crt $pkgdir/usr/share/apps/kssl/ca-bundle.crt