archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-mqtt / trunk / PKGBUILD
blob30dcaaf421c78fb2513616a3f444a040f5b32df5
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Jan Peter Koenig <public@janpeterkoenig.com>
3 # Contributor: Niklas <dev@n1klas.net>
5 pkgname=qt5-mqtt
6 _qtver=5.15.2
7 pkgver=${_qtver/-/}
8 pkgrel=9
9 pkgdesc="Module to implement MQTT protocol v3.1/3.1.1/5.0"
10 arch=(x86_64)
11 url="http://qt-project.org/"
12 license=(GPL3 custom)
13 depends=(qt5-base)
14 makedepends=(git)
15 source=("git+https://code.qt.io/qt/qtmqtt.git#tag=v$_qtver")
16 sha512sums=('SKIP')
17 _pkgfqn=${pkgname/5-/}
19 prepare() {
20   mkdir -p build
23 build() {
24   cd build
25   qmake ../$_pkgfqn
26   make
29 package() {
30   cd build
31   make INSTALL_ROOT="$pkgdir" install
32     
33   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
34   find "$pkgdir"/usr/lib -type f -name '*.prl' \
35     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
36   install -Dm644 "$srcdir"/$_pkgfqn/LICENSE.GPL3-EXCEPT \
37     "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.GPL3-EXCEPT