desktop/qtcreator/PKGBUILD
2018-07-20 04:29:33 +02:00

56 lines
1.8 KiB
Bash

pkgname=qtcreator
pkgver=4.7.0
_pkgver=4.7
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=1.12.0' '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')
source=("https://download.qt.io/official_releases/${pkgname}/${_pkgver}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.gz")
md5sums=('56dd4c88e30a11d79be7f93f25d201b8')
prepare() {
[[ -d build ]] && rm -r build
mkdir build
cd $srcdir/qt-creator-opensource-src-${pkgver}
# fix hardcoded libexec path
sed -e 's|libexec\/qtcreator|lib\/qtcreator|g' -i qtcreator.pri
# use system qbs
msg "Required qbs version is $(cat src/shared/qbs/VERSION)"
msg "Removing built-in qbs"
rm -r src/shared/qbs
}
build() {
cd build
qmake-qt5 LLVM_INSTALL_DIR=/usr QBS_INSTALL_DIR=/usr CONFIG+=journald QMAKE_CFLAGS_ISYSTEM=-I \
DEFINES+=QBS_ENABLE_PROJECT_FILE_UPDATES "$srcdir"/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
}