1 # Contributor: Harley Laue <losinggeneration@gmail.com>
2 # Contributor: mosra <mosra@centrum.cz>
4 pkgname=(kdevelop-extra-plugins-php-git)
7 pkgdesc="A PHP plugin for KDevelop development environment for KDE - GIT build"
9 url="http://www.kdevelop.org/"
11 groups=('kde' 'kdevelop-extra-plugins')
12 depends=('kdevplatform-git')
13 optdepends=('kdevelop-git')
14 makedepends=('cmake' 'automoc4' 'git' 'kdevelop-pg-qt-git')
15 provides=('kdevelop-php')
16 conflicts=('kdevelop-php')
20 _gitroot="git://anongit.kde.org/kdev-php"
25 msg "Connecting to GIT server...."
27 if [ -d $_gitname ] ; then
30 # Change remote url to anongit
31 if [ -z "$(git remote -v | grep anongit)" ] ; then
32 git remote set-url origin ${_gitroot}
36 msg "The local files are updated."
38 git clone $_gitroot $_gitname
41 msg "GIT checkout done or server timeout"
42 msg "Starting make..."
44 mkdir -p "$srcdir/build"
47 cmake ../${_gitname} \
48 -DCMAKE_SKIP_RPATH=ON \
49 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
50 -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
51 -DCMAKE_INSTALL_PREFIX=/usr
59 make DESTDIR="${pkgdir}" install