desktop/qtcreator/PKGBUILD

62 lines
2.2 KiB
Bash
Raw Normal View History

2010-06-01 03:21:31 +08:00
pkgname=qtcreator
2018-10-24 21:47:48 +08:00
pkgver=4.7.2
2018-07-18 22:56:22 +08:00
_pkgver=4.7
pkgrel=1
pkgdesc='Lightweight, cross-platform integrated development environment'
2012-12-31 04:23:09 +08:00
arch=('x86_64')
2016-12-15 09:28:46 +08:00
url='https://www.qt.io'
2010-06-01 03:21:31 +08:00
license=('LGPL')
2017-05-25 07:36:47 +08:00
depends=('qt5-tools' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'qt5-webengine'
2018-10-01 21:28:05 +08:00
'gnutls' 'qbs=1.12.1' 'clang')
2018-10-24 21:47:48 +08:00
makedepends=('git' 'mesa' 'llvm' 'python2')
options=('docs')
optdepends=('qt5-doc: for the integrated Qt documentation'
2016-05-13 05:01:04 +08:00
'qt5-examples: welcome page examples'
2017-05-25 07:36:47 +08:00
'qt5-translations: for other languages'
2011-09-30 03:24:36 +08:00
'gdb: for the debugger'
'cmake: for cmake project support'
'openssh-askpass: for ssh support'
2011-09-30 03:24:36 +08:00
'git: for git support'
'mercurial: for mercurial support'
2013-05-28 02:51:52 +08:00
'bzr: for bazaar support'
'valgrind: for analyze support')
2018-10-24 21:47:48 +08:00
source=("https://download.qt.io/official_releases/${pkgname}/${_pkgver}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.gz"
qtcreator-clang-plugins.patch)
md5sums=('7c071e29df9aa454ed45807e149fc753'
'96d0947e5aa7230167aedf2a38a95f24')
prepare() {
2014-06-08 14:26:18 +08:00
[[ -d build ]] && rm -r build
mkdir build
2018-07-20 10:29:33 +08:00
cd $srcdir/qt-creator-opensource-src-${pkgver}
2017-05-25 07:36:47 +08:00
# fix hardcoded libexec path
sed -e 's|libexec\/qtcreator|lib\/qtcreator|g' -i qtcreator.pri
2017-05-25 07:36:47 +08:00
# use system qbs
msg "Required qbs version is $(cat src/shared/qbs/VERSION)"
msg "Removing built-in qbs"
rm -r src/shared/qbs
2018-10-24 21:47:48 +08:00
# Load analyzer plugins on demand, since upstream clang doesn't link to all plugins
# see http://code.qt.io/cgit/clang/clang.git/commit/?id=7f349701d3ea0c47be3a43e265699dddd3fd55cf
# and https://bugs.archlinux.org/task/59492
patch -p1 -i ../qtcreator-clang-plugins.patch
}
build() {
2017-05-25 07:36:47 +08:00
cd build
2010-10-04 10:00:59 +08:00
2018-04-08 17:23:57 +08:00
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
2013-05-28 02:51:52 +08:00
make
2017-05-25 07:36:47 +08:00
make docs
2010-10-04 10:00:59 +08:00
}
package() {
2017-05-25 07:36:47 +08:00
cd build
2010-10-04 10:00:59 +08:00
make INSTALL_ROOT="${pkgdir}/usr/" install
2013-05-28 02:51:52 +08:00
make INSTALL_ROOT="${pkgdir}/usr/" install_docs
2010-10-04 10:00:59 +08:00
2016-05-13 05:01:04 +08:00
install -Dm644 ${srcdir}/qt-creator-opensource-src-${pkgver}/LICENSE.GPL3-EXCEPT ${pkgdir}/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
2010-06-01 03:21:31 +08:00
}