git » qt5-base.git » commit eafb33f

Support postgresql 12

author Antonio Rojas
2019-11-18 21:46:51 UTC
committer Antonio Rojas
2019-11-18 21:46:51 UTC
parent adb5d38a75bc0e4d3325a44be97eee5e3a69ef05

Support postgresql 12

PKGBUILD +7 -3

diff --git a/PKGBUILD b/PKGBUILD
index 5ab8b88..87c3508 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgbase=qt5-base
 pkgname=(qt5-base qt5-xcb-private-headers)
 _qtver=5.13.2
 pkgver=${_qtver/-/}
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
 url='https://www.qt.io'
 license=('GPL3' 'LGPL3' 'FDL' 'custom')
@@ -26,8 +26,10 @@ optdepends=('qt5-svg: to use SVG icon themes'
 conflicts=('qtchooser')
 groups=('qt' 'qt5')
 _pkgfqn="${pkgbase/5-/}-everywhere-src-${_qtver}"
-source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
-sha256sums=('26b6b686d66a7ad28eaca349e55e2894e5a735f3831e45f2049e93b1daa92121')
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
+         qtbase-postgresql-12.patch::"https://code.qt.io/cgit/qt/qtbase.git/patch/?id=14b61d48")
+sha256sums=('26b6b686d66a7ad28eaca349e55e2894e5a735f3831e45f2049e93b1daa92121'
+            'd3af93d23109fe59659e80e6c5b70b1e877a0680635eb919e74b4d79724db36b')
 
 prepare() {
   cd ${_pkgfqn}
@@ -38,6 +40,8 @@ prepare() {
     mkspecs/common/gcc-base.conf
   sed -i -e "s|^\(QMAKE_LFLAGS_RELEASE.*\)|\1 ${LDFLAGS}|" \
     mkspecs/common/g++-unix.conf
+
+  patch -p1 -i ../qtbase-postgresql-12.patch # Add support for postgresql 12
 }
 
 build() {