pkgname=qtcreator pkgver=4.4.1 _pkgver=4.4 pkgrel=1 pkgdesc='Lightweight, cross-platform integrated development environment' arch=('x86_64') url='https://www.qt.io' license=('LGPL') depends=('qt5-tools' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'qt5-webengine' 'gnutls' 'qbs' 'clang') makedepends=('git' 'mesa' 'llvm') options=('docs') optdepends=('qt5-doc: for the integrated Qt documentation' 'qt5-examples: welcome page examples' 'qt5-translations: for other languages' 'gdb: for the debugger' 'cmake: for cmake project support' 'openssh-askpass: for ssh support' 'git: for git support' 'mercurial: for mercurial support' 'bzr: for bazaar support' 'valgrind: for analyze support') install=${pkgname}.install source=("http://download.qt.io/official_releases/${pkgname}/${_pkgver}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.gz") md5sums=('a3f9901edd48236913348a6361704703') 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 } build() { cd build qmake-qt5 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 }