Skip to content
Snippets Groups Projects
Commit bc4ca70d authored by jean-michel's avatar jean-michel
Browse files

Disable reduce-relocations, see https://bugreports.qt.io/browse/QTBUG-86173

parent e49b0f77
Branches
Tags
No related merge requests found
Pipeline #1091 passed
# Obarun : 66 init/supervisor
# Copyright : Obarun
#------------------------
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
# Maintainer : YianIris <yianiris At Disroot Dot Org>
# Obarun PkgSrc : https://git.obarun.org/pkg/obextra/qt5-base
#----------------
# Pkgbuild Src : https://git.obarun.org/pkg/obextra/qt5-base
#--------------------------------------------------------------
# DESCRIPTION ]
pkgbase=qt5-base
pkgname=('qt5-base' 'qt5-xcb-private-headers')
pkgver=5.15.2+kde+r268
pkgrel=2
pkgdesc='A cross-platform application and UI framework'
pkgver=5.15.2+kde+r274
pkgrel=3
pkgdesc="A cross-platform application and UI framework"
url='https://www.qt.io'
pkgname=(
'qt5-base'
'qt5-xcb-private-headers'
)
track=commit
target=edb0f568ca1380623325cb18365b0af81cbf65bf
target=98aa64af7e1e677bd107bfb0c432cabf7c3a5e32
source=(
"git+https://invent.kde.org/qt/qt/${pkgbase/5-}#$track=$target"
'qt5-base-cflags.patch'
'qt5-base-nostrip.patch'
qt5-base-cflags.patch
qt5-base-nostrip.patch
)
#--------------------
......@@ -33,9 +37,9 @@ pkgver() {
prepare() {
cd ${pkgbase/5-}
git revert -n 6344955d17e17e2398720fe60c34cfc2a4a95208 # Revert version bump
patch -p1 < ../qt5-base-cflags.patch # Use system CFLAGS in qmake
patch -p1 < ../qt5-base-nostrip.patch # Don't strip binaries with qmake
git revert -n 6344955d17e17e2398720fe60c34cfc2a4a95208 ## Revert version bump
patch -p1 < ../qt5-base-cflags.patch ## Use system CFLAGS in qmake
patch -p1 < ../qt5-base-nostrip.patch ## Don't strip binaries with qmake
}
#----------------------
......@@ -59,8 +63,6 @@ makedepends=(
#------------------------
# INSTALL CONFIGURATION ]
arch=(x86_64)
depends=(
'libjpeg-turbo'
'xcb-util-keysyms'
......@@ -130,7 +132,7 @@ build() {
-system-harfbuzz \
-no-mimetype-database \
-no-use-gold-linker \
-reduce-relocations \
-no-reduce-relocations \
-no-strip \
-ltcg
......@@ -144,8 +146,10 @@ build() {
# PACKAGE ]
package_qt5-base() {
pkgdesc='A cross-platform application and UI framework'
depends+=(qt5-translations)
pkgdesc="A cross-platform application and UI framework"
depends+=(
'qt5-translations'
)
cd ${pkgbase/5-}
make INSTALL_ROOT="$pkgdir" install
......@@ -153,7 +157,7 @@ package_qt5-base() {
install -Dm644 LICENSE* -t "$pkgdir"/usr/share/licenses/$pkgbase
## Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
find "$pkgdir"/usr/lib -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
## Fix wrong qmake path in pri file
......@@ -167,18 +171,20 @@ package_qt5-base() {
}
package_qt5-xcb-private-headers() {
pkgdesc='Private headers for Qt5 Xcb'
depends=("qt5-base=$pkgver")
pkgdesc="Private headers for Qt5 Xcb"
depends=(
"qt5-base=$pkgver"
)
cd ${pkgbase/5-}
install -d -m755 "$pkgdir"/usr/include/qtxcb-private
cp -r src/plugins/platforms/xcb/*.h "$pkgdir"/usr/include/qtxcb-private/
}
#-------------------------
# LICENCE AND VALIDATION ]
#--------------------
# ARCH LICENSE AUTH ]
arch=(x86_64)
license=(GPL3 LGPL3 FDL custom)
sha512sums=(' ')
sha512sums=('')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment