1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=kpackagekit-git
6 pkgdesc="An application and package manager using PackageKit"
10 depends=('kdebase-workspace' 'packagekit-qt')
11 makedepends=('git' 'cmake' 'automoc4')
12 provides=('kpackagekit' 'apper')
13 conflicts=('kpackagekit')
15 _gitroot="git://anongit.kde.org/apper.git"
16 _gitname="kpackagekit"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/build"
36 cmake ../${_gitname} \
37 -DCMAKE_BUILD_TYPE=Release \
38 -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
44 make DESTDIR="$pkgdir" install