Date: Tuesday, May 26, 2020 @ 08:44:39 Author: arojas Revision: 387561
archrelease: copy trunk to staging-x86_64 Added: qt5-mqtt/repos/staging-x86_64/ qt5-mqtt/repos/staging-x86_64/PKGBUILD (from rev 387560, qt5-mqtt/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: qt5-mqtt/repos/staging-x86_64/PKGBUILD (from rev 387560, qt5-mqtt/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2020-05-26 08:44:39 UTC (rev 387561) @@ -0,0 +1,38 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Jan Peter Koenig <pub...@janpeterkoenig.com> +# Contributor: Niklas <d...@n1klas.net> + +pkgname=qt5-mqtt +_qtver=5.15.0 +pkgver=${_qtver/-/} +pkgrel=1 +pkgdesc="Module to implement MQTT protocol v3.1/3.1.1/5.0" +arch=(x86_64) +url="http://qt-project.org/" +license=(GPL3 custom) +depends=(qt5-base) +makedepends=(git) +source=("git://code.qt.io/qt/qtmqtt.git#tag=v$_qtver") +sha512sums=('SKIP') +_pkgfqn=${pkgname/5-/} + +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 -Dm644 "$srcdir"/$_pkgfqn/LICENSE.GPL3-EXCEPT \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.GPL3-EXCEPT +}