updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qtcreator-todo-plugin-git / PKGBUILD
blobf918c167d7d49b6b42e6caf526f8abef98b747f5
1 # Maintainer: K?vin Guilloy <kevin@guilloy.ath.cx>
3 pkgname=qtcreator-todo-plugin-git
4 pkgver=20111215
5 pkgrel=1
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' 'qtcreator=2.4.0')
11 makedepends=('git' 'qtcreator-src=2.4.0')
12 source=('uptodate.patch')
13 sha256sums=('93868fb770063e5ff8f266a1b4d25c9b448c5e760e46a51edbfdcd35563a04ca')
15 _gitroot="git://gitorious.org/qt-creator-todo-plugin/qt-creator-todo-plugin.git"
16 _gitname="todo-plugin"
18 build() {
19   cd "$startdir/src"
20   git clone $_gitroot $_gitname --depth=1
21   msg "Git checkout done or server timeout"
23   patch -p0 < uptodate.patch
25   cd "$_gitname"
27   mkdir -p $startdir/pkg/usr/lib/qtcreator/plugins/vsorokin
28   sed -i -e 's/\/home\/vass\/qt-creator/\/usr\/src\/qtcreator/' todoplugin.pro
29   echo "LIBS += -L/usr/lib/qtcreator -L/usr/lib/qtcreator/plugins/Nokia" >> todoplugin.pro
31   sed -i -e "s/\/opt\/qtcreator-2.1.81/\/usr/" todoplugin.pro
32   sed -i -e "s/\$\$QTC_BUILD_DIR\/lib\/qtcreator\/plugins\/\$\$(PROVIDER)/..\/..\/pkg\/usr/" todoplugin.pro
33   sed -i -e "s/\$\$QTC_BUILD_DIR/..\/..\/pkg\/usr/" todoplugin.pro
35   sed -i -e "s/2\.1\.81/2\.4\.0/" todo.pluginspec
37   qmake
38   make