git » qt5-script.git » commit 51084e1

Fix arithmetic errors with GCC 8

author Antonio Rojas
2018-05-23 18:00:04 UTC
committer Antonio Rojas
2018-05-23 18:00:04 UTC
parent 54582122e58fcb3cf532196031de7fd32208418b

Fix arithmetic errors with GCC 8

PKGBUILD +8 -3

diff --git a/PKGBUILD b/PKGBUILD
index 3fc2a58..c4917dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=qt5-script
 _qtver=5.11.0
 pkgver=${_qtver/-/}
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='http://qt-project.org/'
 license=('GPL3' 'LGPL3' 'FDL' 'custom')
@@ -14,11 +14,16 @@ depends=('qt5-base')
 makedepends=()
 groups=('qt' 'qt5')
 _pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
-source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
-sha256sums=('25926ae733b31baac7af51f489ad26570d4f4f02ad4892a4a82babae5f5168c5')
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
+        qt5-script-gcc8.patch::"http://code.qt.io/cgit/qt/qtscript.git/patch/?id=9d1a9073")
+sha256sums=('25926ae733b31baac7af51f489ad26570d4f4f02ad4892a4a82babae5f5168c5'
+            '8b7c32b9a2810ff3feca4c6fda94f7d76a81402a202c6c2dbe4830c372c5acf0')
 
 prepare() {
   mkdir -p build
+
+  cd ${_pkgfqn}
+  patch -p1 -i ../qt5-script-gcc8.patch # Fix arithmetic errors with GCC 8
 }
 
 build() {