updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / qtcreator-todo-plugin-opt-git / PKGBUILD
blob37f39ead6687154ef49ab5cd518b2a158067e7c6
1 # Contributor: Alexander Drozdov <adrozdoff@gmail.com>
3 pkgname=qtcreator-todo-plugin-opt-git
4 pkgver=20100827
5 pkgrel=2
6 pkgdesc="Collection of actions to improve productivity while writing code"
7 arch=('i686' 'x86_64')
8 url="http://gitorious.org/creator-plugins"
9 license=('BSD')
10 depends=('qt-opt-git' 'qtcreator-opt-git')
11 makedepends=('git')
12 source=()
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"
19 build() {
21     #
22     # Get Qt Creator
23     #
25     cd ${startdir}/src
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."
30     else
31         git clone $_gitroot_creator $_gitname_creator || return 1
32     fi
33     msg "GIT checkout done or server timeout"
35     #
36     # Build CppHelper Plugin
37     #
38     cd ${startdir}/src
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."
43     else
44         git clone $_gitroot $_gitname
45     fi
46     msg "GIT checkout done or server timeout"
48     if [ -d ${srcdir}/$_gitname-build ]; then
49         rm -rf ${srcdir}/$_gitname-build
50     fi
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}/
57     /opt/qt-git/bin/qmake
58     make
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}/
68 md5sums=()