1 # Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
2 # Contributor: mosra <mosra@centrum.cz>
7 pkgdesc="A C/C++ development environment for KDE - GIT build"
9 url="http://www.kdevelop.org/"
11 depends=('kdevplatform-git' 'kdebase-workspace')
12 makedepends=('cmake' 'automoc4' 'perl' 'git')
14 conflicts=('kdevelop')
18 _gitroot="git://anongit.kde.org/kdevelop"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
28 # Change remote url to anongit
29 if [ -z "$(git remote -v | grep anongit)" ] ; then
30 git remote set-url origin ${_gitroot}
34 msg "The local files are updated."
36 git clone $_gitroot $_gitname
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
42 mkdir -p "$srcdir/build"
45 cmake ../${_gitname} \
46 -DCMAKE_INSTALL_PREFIX=/usr \
47 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
55 make DESTDIR="${pkgdir}" install