updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / qtcreator-patched / PKGBUILD
blob71d5965563f626eebc794870c14859f8c8d696f2
1 # Maintainer: m0rph (m0rph.mailbox@gmail.com)
3 pkgname="qtcreator-patched"
4 pkgver=2.4.0
5 pkgrel=1
6 pkgdesc='QtCreator with separated POD-type highlighting'
7 arch=('i686' 'x86_64')
8 url='http://qt.nokia.com/products/developer-tools'
9 license=('LGPL')
10 depends=('qt>=4.7.4')
11 makedepends=('qt-private-headers>=4.7.4' 'git')
12 provides=('qtcreator')
13 conflicts=('qtcreator')
14 options=('docs')
15 source=("http://get.qt.nokia.com/qtcreator/qt-creator-${pkgver}-src.tar.gz"
16         'add_pod_highlighting.patch'
17         'qtcreator.desktop')
18 md5sums=('80c1a2be4c685ce147c42424ad977e1a'
19          '573280911756724597ddce2f6ac18263'
20          'f1f4680b9838ff0b8f4cf11eb850d662')
22 build() {
23   cd ${srcdir}/qt-creator-${pkgver}-src/
25   echo $(pwd)
27   patch -p3 -i ../add_pod_highlighting.patch
29   [[ -d build ]] && rm -r build
30   mkdir build && cd build
32   qmake ${srcdir}/qt-creator-${pkgver}-src/qtcreator.pro
33   make
36 package() {
37   optdepends=('qt-doc: for the integrated Qt documentation'
38               'gdb: for the debugger'
39               'cmake: for cmake project suppport'
40               'openssh-askpass: for ssh support'
41               'git: for git support'
42               'mercurial: for mercurial support'
43               'bzr: for bazaar support')
44   
45   cd ${srcdir}/qt-creator-${pkgver}-src/build
47   make INSTALL_ROOT="${pkgdir}/usr/" install
49   install -Dm644 ${srcdir}/qtcreator.desktop \
50     ${pkgdir}/usr/share/applications/qtcreator.desktop
51   install -Dm644 ${srcdir}/qt-creator-${pkgver}-src/LGPL_EXCEPTION.TXT \
52     ${pkgdir}/usr/share/licenses/qtcreator/LGPL_EXCEPTION.TXT