# $Id$ # Maintainer: Felix Yan # Contributor: Andrea Scarpino pkgbase=qt5-base pkgname=(qt5-base) _qtver=5.13.1 pkgver=${_qtver/-/} pkgrel=1 arch=('x86_64') url='http://qt-project.org/' #'gst-plugins-base-libs' license=('GPL3' 'LGPL3' 'FDL' 'custom') pkgdesc='A cross-platform application and UI framework' depends=('libjpeg-turbo' 'fontconfig' 'xdg-utils' 'shared-mime-info' 'sqlite' 'pcre2' 'libinput' ) makedepends=('sqlite' 'alsa-lib' 'patch' 'perl' ) groups=('qt' 'qt5') _pkgfqn="${pkgbase/5-/}-everywhere-src-${_qtver}" source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") sha256sums=('SKIP') prepare() { cd ${_pkgfqn} # Build qmake using Arch {C,LD}FLAGS # This also sets default {C,CXX,LD}FLAGS for projects built using qmake #sed -i -e "s|^\(QMAKE_CFLAGS_RELEASE.*\)|\1 ${CFLAGS}|" \ # mkspecs/common/gcc-base.conf #sed -i -e "s|^\(QMAKE_LFLAGS_RELEASE.*\)|\1 ${LDFLAGS}|" \ # mkspecs/common/g++-unix.conf } build() { cd ${_pkgfqn} ./configure -confirm-license -opensource -v \ -prefix /usr \ -docdir /usr/share/doc/qt \ -headerdir /usr/include/qt \ -archdatadir /usr/lib/qt \ -datadir /usr/share/qt \ -sysconfdir /etc/xdg \ -openssl-linked \ -nomake examples \ -nomake tests \ -no-rpath \ -no-warnings-are-errors \ -optimized-qmake \ -dbus-linked \ -system-harfbuzz \ -no-journald \ -no-xcb \ -no-icu \ -opengl es2 \ -no-gtk \ -qt-sqlite \ -qt-libpng \ -no-linuxfb \ -no-xcb \ -no-xcb-xlib \ -no-gtk \ -no-kms \ -no-eglfs \ -no-feature-vnc \ -no-feature-accessibility \ make -j3 } package_qt5-base() { pkgdesc='A cross-platform application and UI framework' cd ${_pkgfqn} make INSTALL_ROOT="${pkgdir}" install # Drop QMAKE_PRL_BUILD_DIR because reference the build dir find "${pkgdir}/usr/lib" -type f -name '*.prl' \ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; # Fix wrong qmake path in pri file sed -i "s|${srcdir}/${_pkgfqn}|/usr|" \ "${pkgdir}"/usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri # Symlinks for backwards compatibility #for b in "${pkgdir}"/usr/bin/*; do # ln -s /usr/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-qt5 #done }