# Contributor: Carlo Landmeter # Maintainer: Bart Ribbers pkgname=qt5-qtx11extras pkgver=5.14.1 pkgrel=1 pkgdesc="Provides platform-specific APIs for X11" url="https://www.qt.io/developers/" arch="all" license="(LGPL-3.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later) AND Qt-GPL-exception-1.0" makedepends="qt5-qtbase-dev" subpackages="$pkgname-dev" replaces="qt5-x11extras" builddir="$srcdir/qtx11extras-everywhere-src-$pkgver" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://download.qt.io/$_rel/qt/${pkgver%.*}/$pkgver/submodules/qtx11extras-everywhere-src-$pkgver.tar.xz" build() { qmake-qt5 make } check() { make check } package() { 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' {} \; install -d "$pkgdir"/usr/share/licenses ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname } sha512sums="e88c9e0440c5d12003d74182dab5e63f0c65ced93447b5c3cabccd1c8c96e9b8e38fce327e678a433af18d2af683bb4f939dbc3e7bea2e911eeeb71ebe70c058 qtx11extras-everywhere-src-5.14.1.tar.xz"