[arch-commits] Commit in qt5-mqtt/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Sep 9 09:17:17 UTC 2020


    Date: Wednesday, September 9, 2020 @ 09:17:17
  Author: arojas
Revision: 395617

archrelease: copy trunk to staging-x86_64

Added:
  qt5-mqtt/repos/staging-x86_64/
  qt5-mqtt/repos/staging-x86_64/PKGBUILD
    (from rev 395616, qt5-mqtt/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: qt5-mqtt/repos/staging-x86_64/PKGBUILD (from rev 395616, qt5-mqtt/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-09-09 09:17:17 UTC (rev 395617)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Jan Peter Koenig <public at janpeterkoenig.com>
+# Contributor: Niklas <dev at n1klas.net>
+
+pkgname=qt5-mqtt
+_qtver=5.15.1
+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
+}


More information about the arch-commits mailing list