From anonymous, 1 Week ago, written in Diff-output.
Embed
  1. diff --git a/qt5-base/PKGBUILD b/qt5-base/PKGBUILD
  2. index 7afb60d..6711acb 100644
  3. --- a/qt5-base/PKGBUILD
  4. +++ b/qt5-base/PKGBUILD
  5. @@ -2,8 +2,9 @@
  6.  # Maintainer: Felix Yan <felixonmars@archlinux.org>
  7.  # Contributor: Andrea Scarpino <andrea@archlinux.org>
  8.  
  9. -pkgbase=qt5-base
  10. -pkgname=(qt5-base qt5-xcb-private-headers)
  11. +pkgbase=qt5-base-debug
  12. +_orig_pkgbase=${pkgbase/-debug/}
  13. +pkgname=(qt5-base-debug qt5-xcb-private-headers-debug)
  14.  _qtver=5.10.0
  15.  pkgver=${_qtver/-/}
  16.  pkgrel=4
  17. @@ -25,7 +26,7 @@ optdepends=('qt5-svg: to use SVG icon themes'
  18.              'gtk3: GTK platform plugin')
  19.  conflicts=('qtchooser')
  20.  groups=('qt' 'qt5')
  21. -_pkgfqn="${pkgbase/5-/}-everywhere-src-${_qtver}"
  22. +_pkgfqn="${_orig_pkgbase/5-/}-everywhere-src-${_qtver}"
  23.  source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
  24.          qtbug-65235.patch::"https://github.com/qt/qtbase/commit/79d78d81.patch"
  25.          qtbug-59261.patch::"https://github.com/qt/qtbase/commit/d1960360.patch")
  26. @@ -75,18 +76,22 @@ build() {
  27.      -system-harfbuzz \
  28.      -journald \
  29.      -no-use-gold-linker \
  30. -    -reduce-relocations
  31. +    -reduce-relocations \
  32. +    -force-debug-info
  33.    make
  34.  }
  35.  
  36. -package_qt5-base() {
  37. +package_qt5-base-debug() {
  38. +  provides=("qt5-base=$pkgver")
  39. +  conflicts+=("qt5-base")
  40. +  options=("debug" "!strip")
  41.    pkgdesc='A cross-platform application and UI framework'
  42.  
  43.    cd ${_pkgfqn}
  44.    make INSTALL_ROOT="${pkgdir}" install
  45.  
  46.    install -D -m644 LGPL_EXCEPTION.txt \
  47. -    "${pkgdir}"/usr/share/licenses/${pkgbase}/LGPL_EXCEPTION.txt
  48. +    "${pkgdir}"/usr/share/licenses/${_orig_pkgbase}/LGPL_EXCEPTION.txt
  49.  
  50.    # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  51.    find "${pkgdir}/usr/lib" -type f -name '*.prl' \
  52. @@ -102,7 +107,10 @@ package_qt5-base() {
  53.    done
  54.  }
  55.  
  56. -package_qt5-xcb-private-headers() {
  57. +package_qt5-xcb-private-headers-debug() {
  58. +  provides=("qt5-xcb-private-headers=$pkgver")
  59. +  conflicts+=("qt5-xcb-private-headers")
  60. +  options=("debug" "!strip")
  61.    pkgdesc='Private headers for Qt5 Xcb'
  62.  
  63.    depends=("qt5-base=$pkgver")
  64.