diff options
author | davidovski <david@davidovski.xyz> | 2022-06-01 18:23:59 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-01 18:23:59 +0100 |
commit | fccdaa986f67f820df2914bef851d5fed77abac8 (patch) | |
tree | 6bc6503af26cbc32f5db1558c129f7303282172e /repo/qt5-qtbase/qt5-qtbase.xibuild | |
parent | fa2c7177695d2072d541057a9610e55b51ff4db1 (diff) |
added thunderbird and qt5
Diffstat (limited to 'repo/qt5-qtbase/qt5-qtbase.xibuild')
-rw-r--r-- | repo/qt5-qtbase/qt5-qtbase.xibuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/repo/qt5-qtbase/qt5-qtbase.xibuild b/repo/qt5-qtbase/qt5-qtbase.xibuild new file mode 100644 index 0000000..d9e4791 --- /dev/null +++ b/repo/qt5-qtbase/qt5-qtbase.xibuild @@ -0,0 +1,78 @@ +#!/bin/sh + +NAME="qt5-qtbase" +DESC="Qt5 - QtBase components" + +MAKEDEPS="make libexecinfo" +DEPS="dbus glib icu openssl pcre2 xdg-utils zlib zstd musl " + +PKG_VER=5.15.4 +commit="e0a15c11b853954d4189b2e30aa2450184de0987" +SOURCE="https://invent.kde.org/qt/qt/qtbase/-/archive/$commit/qtbase-$commit.tar.gz" +ADDITIONAL=" +compile-with-libexecinfo-enabled.patch +qt-musl-iconv-no-bom.patch +qt5-base-cflags.patch +qt5-base-nostrip.patch +qt5-qtbase.xibuild +" + +qt5_prefix=/usr/lib/qt5 +qt5_datadir=/usr/share/qt5 + +prepare () { + apply_patches + sed -i -e "s|-O2|$CXXFLAGS|" \ + -e "/^QMAKE_RPATH/s| -Wl,-rpath,||g" \ + -e "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" \ + mkspecs/common/*.conf + + mkdir .git +} + +build () { + ./configure -confirm-license -opensource \ + -archdatadir "$qt5_prefix" \ + -bindir "$qt5_prefix"/bin \ + -datadir "$qt5_datadir" \ + -dbus-linked \ + -docdir /usr/share/doc/qt5 \ + -examplesdir /usr/share/doc/qt5/examples \ + -glib \ + -headerdir /usr/include/qt5 \ + -icu \ + -importdir "$qt5_prefix"/imports \ + -libexecdir "$qt5_prefix"/libexec \ + -no-rpath \ + -no-separate-debug-info \ + -no-pch \ + -nomake examples \ + -opengl \ + -openssl-linked \ + -optimized-qmake \ + -plugin-sql-sqlite \ + -plugindir "$qt5_prefix"/plugins \ + -prefix /usr \ + -sysconfdir /etc/xdg \ + -system-libjpeg \ + -system-libpng \ + -system-sqlite \ + -system-zlib \ + -translationdir "$qt5_datadir"/translations \ + -no-reduce-relocations + export LDFLAGS="-lexecinfo" + make +} + +package () { + make INSTALL_ROOT=$PKG_DEST install + install -d $PKG_DEST/usr/bin + for i in "$PKG_DEST"/"$qt5_prefix"/bin/*; do + name=${i##*/} + case $_name in + *.*) dest="$PKG_DEST"/usr/bin/${name%.*}-qt5.${name##*.};; + *) dest="$PKG_DEST"/usr/bin/${name%.*}-qt5;; + esac + ln -s ../lib/qt5/bin/"$name" "$dest" + done +} |