Date: Saturday, April 20, 2019 @ 17:51:20 Author: arojas Revision: 351515
archrelease: copy trunk to staging-x86_64 Added: qt5-x11extras/repos/staging-x86_64/ qt5-x11extras/repos/staging-x86_64/PKGBUILD (from rev 351514, qt5-x11extras/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: qt5-x11extras/repos/staging-x86_64/PKGBUILD (from rev 351514, qt5-x11extras/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2019-04-20 17:51:20 UTC (rev 351515) @@ -0,0 +1,40 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=qt5-x11extras +_qtver=5.12.3 +pkgver=${_qtver/-/} +pkgrel=1 +arch=('x86_64') +url='https://www.qt.io' +license=('GPL3' 'LGPL3' 'FDL' 'custom') +pkgdesc='Provides platform-specific APIs for X11' +depends=('qt5-base') +makedepends=() +groups=('qt' 'qt5') +_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}" +source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +sha256sums=('85e3ae5177970c2d8656226d7535d0dff5764c100e55a79a59161d80754ba613') + +prepare() { + mkdir -p build +} + +build() { + cd build + + qmake ../${_pkgfqn} + make +} + +package() { + cd build + 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} +}