1 # Contributor: Alexander Drozdov <adrozdoff@gmail.com>
3 pkgname=qtcreator-todo-plugin-opt-git
6 pkgdesc="Collection of actions to improve productivity while writing code"
8 url="http://gitorious.org/creator-plugins"
10 depends=('qt-opt-git' 'qtcreator-opt-git')
14 _gitroot="http://git.gitorious.org/~h4tr3d/qt-creator-todo-plugin/h4tr3d-qt-creator-todo-plugin.git"
15 _gitname="todo-plugin"
16 _gitroot_creator="git://gitorious.org/qt-creator/qt-creator.git"
17 _gitname_creator="qt-creator"
26 msg "Connecting to GIT server for fetch qt-creator"
27 if [ -d ${srcdir}/$_gitname_creator ] ; then
28 cd ${srcdir}/$_gitname_creator && git pull origin || return 1
29 msg "The local files are updated."
31 git clone $_gitroot_creator $_gitname_creator || return 1
33 msg "GIT checkout done or server timeout"
36 # Build CppHelper Plugin
39 msg "Connecting to GIT server for fetch plugins"
40 if [ -d ${srcdir}/$_gitname ] ; then
41 cd ${srcdir}/$_gitname && git pull origin
42 msg "The local files are updated."
44 git clone $_gitroot $_gitname
46 msg "GIT checkout done or server timeout"
48 if [ -d ${srcdir}/$_gitname-build ]; then
49 rm -rf ${srcdir}/$_gitname-build
51 cp -a ${srcdir}/$_gitname ${srcdir}/$_gitname-build
52 cd ${srcdir}/$_gitname-build
54 export CREATORDIR=/opt/qtcreator-git
55 export CREATORSRC=${srcdir}/${_gitname_creator}/
60 PLUGINS_DIR=/lib/qtcreator/plugins/vsorokin
61 install -m 755 -d ${pkgdir}/opt/qtcreator-git/${PLUGINS_DIR}
62 install -m 644 ./${PLUGINS_DIR}/todo.pluginspec ${pkgdir}/opt/qtcreator-git/${PLUGINS_DIR}/
63 install -m 755 ./${PLUGINS_DIR}/libtodo.so ${pkgdir}/opt/qtcreator-git/${PLUGINS_DIR}/
64 install -m 755 -d ${pkgdir}/usr/share/licenses/${pkgname}
65 install -m 644 ./LICENSE.BSD ${pkgdir}/usr/share/licenses/${pkgname}/