# $Id: PKGBUILD 86795 2013-03-22 10:46:14Z svenstaro $ # Maintainer: Sven-Hendrik Haase # Maintainer: Antonio Rojas # Contributor: Imanol Celaya # Contributor: Lukas Jirkovsky # Contributor: Dan Vratil # Contributor: thotypous # Contributor: delor # ALARM: Kevin Mihelich # - patch distributed botan version for ARM # - drop valgrind optdepend buildarch=12 pkgname=qtcreator pkgver=4.3.0 pkgrel=1 pkgdesc='Lightweight, cross-platform integrated development environment' arch=('i686' 'x86_64') url='http://qt-project.org' license=('LGPL') depends=('qt5-tools' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'qt5-webengine' 'clang' 'qbs') makedepends=('git' 'mesa' 'llvm') options=('docs') optdepends=('qt5-doc: integrated Qt documentation' 'qt5-examples: welcome page examples' 'qt5-translations: for other languages' 'gdb: debugger' 'cmake: cmake project support' 'x11-ssh-askpass: ssh support' 'git: git support' 'mercurial: mercurial support' 'bzr: bazaar support') source=("http://download.qt.io/official_releases/qtcreator/${pkgver%.*}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.xz" '0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch') sha512sums=('462d2494d54c5b528ed187a43365a296c08ad2b104ada451a91d381f070472433ef91856f80a4d94091919296c95820e5d546800fc26a43a9709a6329fba02bb' 'af0a0d5a2fadcfce14def65be73c99bff8227794b9ad2be333713c89e226e2c6b43802a802b6e30f3e6c1b4b77f31183bffdcca3404d9686f15fa84dfc64d1a1') prepare() { [[ -d build ]] && rm -r build mkdir build # fix hardcoded libexec path sed -e 's|libexec\/qtcreator|lib\/qtcreator|g' -i qt-creator-opensource-src-${pkgver}/qtcreator.pri # use system qbs rm -r qt-creator-opensource-src-${pkgver}/src/shared/qbs cd qt-creator-opensource-src-${pkgver} git apply ../0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch } build() { cd build qmake CONFIG+=journald ../qt-creator-opensource-src-${pkgver}/qtcreator.pro make make docs } package() { cd build make INSTALL_ROOT="${pkgdir}/usr/" install make INSTALL_ROOT="${pkgdir}/usr/" install_docs install -Dm644 ${srcdir}/qt-creator-opensource-src-${pkgver}/LICENSE.GPL3-EXCEPT ${pkgdir}/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT }