1 # Contributor: mosra <mosra@centrum.cz>
3 pkgname=(kdevelop-extra-plugins-php-docs-git)
6 pkgdesc="A PHP documentation plugin for KDevelop - GIT build"
8 url="http://www.kdevelop.org/"
10 groups=('kde' 'kdevelop-extra-plugins')
11 depends=('kdevplatform-git')
12 optdepends=('kdevelop-git')
13 makedepends=('cmake' 'automoc4' 'git')
14 provides=('kdevelop-php-docs')
15 conflicts=('kdevelop-php-docs')
19 _gitroot="git://anongit.kde.org/kdev-php-docs"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
29 # Changre remote url to anongit
30 if [ -z "$(git remote -v | grep anongit)" ] ; then
31 git remote set-url origin ${_gitroot}
35 msg "The local files are updated."
37 git clone $_gitroot $_gitname
40 msg "GIT checkout done or server timeout"
41 msg "Starting make..."
43 mkdir -p "$srcdir/build"
46 cmake ../${_gitname} \
47 -DCMAKE_SKIP_RPATH=ON \
48 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
49 -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
50 -DCMAKE_INSTALL_PREFIX=/usr
58 make DESTDIR="${pkgdir}" install