diff --git a/extra/qtcreator/PKGBUILD b/extra/qtcreator/PKGBUILD index bcae83f4b..e4612d65d 100644 --- a/extra/qtcreator/PKGBUILD +++ b/extra/qtcreator/PKGBUILD @@ -15,14 +15,15 @@ buildarch=12 pkgname=qtcreator pkgver=4.5.0 -pkgrel=1 +_clangver=5.0.1 +pkgrel=2 pkgdesc='Lightweight, cross-platform integrated development environment' -arch=('x86_64') +arch=(x86_64) url='http://qt-project.org' -license=('LGPL') -depends=('qt5-tools' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'qt5-webengine' 'clang' 'qbs') -makedepends=('git' 'mesa' 'llvm') -options=('docs') +license=(LGPL) +depends=(qt5-tools qt5-quickcontrols qt5-quickcontrols2 qt5-webengine 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' @@ -38,8 +39,7 @@ sha512sums=('9296ebef4a3d5ae40a9fa3a4039e77b8e407dfb52af3a88b4cc615a89e163d92de4 'af0a0d5a2fadcfce14def65be73c99bff8227794b9ad2be333713c89e226e2c6b43802a802b6e30f3e6c1b4b77f31183bffdcca3404d9686f15fa84dfc64d1a1') prepare() { - [[ -d build ]] && rm -r build - mkdir build + mkdir -p build # fix hardcoded libexec path sed -e 's|libexec\/qtcreator|lib\/qtcreator|g' -i qt-creator-opensource-src-${pkgver}/qtcreator.pri @@ -62,8 +62,8 @@ build() { 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 }