summaryrefslogtreecommitdiff
path: root/libre/qtcreator/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-15 19:53:40 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-15 19:53:40 +0100
commit4fe0fd89ec28f65b2b71b5949f58b83516372e36 (patch)
tree0606906fdd12ffe3bde8860c13bce9a55c2dc885 /libre/qtcreator/PKGBUILD
parent66f14a9940c108b81337920dd766ac8863ced4f2 (diff)
downloadabslibre-4fe0fd89ec28f65b2b71b5949f58b83516372e36.tar.gz
abslibre-4fe0fd89ec28f65b2b71b5949f58b83516372e36.tar.bz2
abslibre-4fe0fd89ec28f65b2b71b5949f58b83516372e36.zip
libre/qtcreator: updated to 4.5.0
Diffstat (limited to 'libre/qtcreator/PKGBUILD')
-rw-r--r--libre/qtcreator/PKGBUILD62
1 files changed, 32 insertions, 30 deletions
diff --git a/libre/qtcreator/PKGBUILD b/libre/qtcreator/PKGBUILD
index 8363ad5bb..093e85b93 100644
--- a/libre/qtcreator/PKGBUILD
+++ b/libre/qtcreator/PKGBUILD
@@ -1,23 +1,24 @@
-# $Id: PKGBUILD 291844 2017-03-30 10:00:44Z arojas $
+# $Id$
# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
# Contributor (Arch): Imanol Celaya <ornitorrincos@archlinux-es.org>
# Contributor (Arch): Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor (Arch): Dan Vratil <progdan@progdansoft.com>
# Contributor (Arch): thotypous <matiasΘarchlinux-br·org>
# Contributor (Arch): delor <bartekpiech gmail com>
-# Maintainer: André Silva <emulatorman@hyperbola.info>
+# Contributor: André Silva <emulatorman@hyperbola.info>
pkgname=qtcreator
-pkgver=4.2.1
-_pkgver=v4.2.1
-pkgrel=4.parabola1
+pkgver=4.5.0
+_clangver=5.0.1
+pkgrel=2.parabola1
pkgdesc='Lightweight, cross-platform integrated development environment, without nonfree qt5-webengine support'
-arch=('i686' 'x86_64' 'armv7h')
+arch=(x86_64 i686 armv7h)
url='http://qt-project.org'
-license=('LGPL')
-depends=('qt5-tools' 'qt5-declarative' 'qt5-script' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'clang' 'qbs')
-makedepends=('git' 'mesa' 'llvm')
-options=('docs')
+license=(LGPL)
+depends=(qt5-tools qt5-declarative qt5-script qt5-quickcontrols qt5-quickcontrols2 clang=$_clangver qbs)
+makedepends=(git mesa llvm)
+options=(docs)
optdepends=('qt5-doc: integrated Qt documentation'
'qt5-examples: welcome page examples'
'qt5-translations: for other languages'
@@ -28,38 +29,39 @@ optdepends=('qt5-doc: integrated Qt documentation'
'mercurial: mercurial support'
'bzr: bazaar support'
'valgrind: analyze support')
-source=("http://download.qt.io/official_releases/qtcreator/4.2/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.xz"
- 'libre.patch'
- '0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch')
-sha512sums=('3135b64a36240bffe41c1373d5e5d5327cfa556f42eb339afcacf2f8d294843b96269269417ab262ba8292e28a57472c78ab7ff4686f0360616a4014c75809e9'
- '57dd505e183661463567b6a7711a7b58f1d5e5b6ecc808acbae4df78366ed3d08be9eb04f6883ad8fd15318c826645e655e7028136b16a801e0084d3a2b51b2a'
- 'af0a0d5a2fadcfce14def65be73c99bff8227794b9ad2be333713c89e226e2c6b43802a802b6e30f3e6c1b4b77f31183bffdcca3404d9686f15fa84dfc64d1a1')
+source=("http://download.qt.io/official_releases/qtcreator/${pkgver%.*}/${pkgver}/qt-creator-opensource-src-${pkgver}.tar.xz"
+ 'libre.patch')
+sha512sums=('9296ebef4a3d5ae40a9fa3a4039e77b8e407dfb52af3a88b4cc615a89e163d92de420d9db614bc689adc695879f0c2e1906e9a218e7a6b96c4b222d52c94912c'
+ 'a1be1d669e1a496ab8e975b925e4b2fa962fc268616deffa09163c42d62874adf210e47cd16ee375110ef53791bd84d53d115b422cef49ba98efbd552e99944c')
prepare() {
- cd $srcdir/qt-creator-opensource-src-$pkgver
- patch -p1 -i ../libre.patch
- rm -rv src/plugins/help/webenginehelpviewer.{cpp,h}
+ mkdir -p 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
- if [[ "$CARCH" =~ ^arm*|^aarch64$ ]]; then
- git apply ../0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch
- fi
+ # remove qt5-webengine support
+ cd qt-creator-opensource-src-${pkgver}
+ patch -Np1 -i "$srcdir"/libre.patch
+ rm -rv src/plugins/help/webenginehelpviewer.{cpp,h}
}
build() {
- [[ -d build ]] && rm -r build
- mkdir build && cd build
+ cd build
- LLVM_INSTALL_DIR=/usr QBS_INSTALL_DIR=/usr qmake QMAKE_CFLAGS_ISYSTEM=-I \
- CONFIG+=journald -r ../qt-creator-opensource-src-${pkgver}/qtcreator.pro
+ qmake 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 -j1
+ make docs
}
package() {
cd build
- make INSTALL_ROOT="${pkgdir}/usr/" install
- make INSTALL_ROOT="${pkgdir}/usr/" install_docs
+ 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
+ install -Dm644 "$srcdir"/qt-creator-opensource-src-$pkgver/LICENSE.GPL3-EXCEPT "$pkgdir"/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
}