mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
62 lines
2.1 KiB
Bash
62 lines
2.1 KiB
Bash
pkgname=qtcreator
|
|
pkgver=4.8.1
|
|
_pkgver=4.8
|
|
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' 'python2')
|
|
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"
|
|
qtcreator-clang-plugins.patch)
|
|
md5sums=('b0c25cc07b3f8d2e1ab3ae05ebcbae3b'
|
|
'96d0947e5aa7230167aedf2a38a95f24')
|
|
|
|
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
|
|
# 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() {
|
|
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
|
|
}
|