desktop/qtcreator/PKGBUILD

56 lines
1.8 KiB
Bash
Raw Normal View History

2010-06-01 03:21:31 +08:00
pkgname=qtcreator
2018-07-18 22:56:22 +08:00
pkgver=4.7.0
_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'
'gnutls' 'qbs=1.12.0' 'clang')
2017-05-25 07:36:47 +08:00
makedepends=('git' 'mesa' 'llvm')
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')
source=("https://download.qt.io/official_releases/${pkgname}/${_pkgver}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.gz")
2018-07-18 22:56:22 +08:00
md5sums=('56dd4c88e30a11d79be7f93f25d201b8')
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
}
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
}