[arch-commits] Commit in (4 files)

Anatol Pomozov anatolik at gemini.archlinux.org
Mon Oct 11 16:03:55 UTC 2021


    Date: Monday, October 11, 2021 @ 16:03:55
  Author: anatolik
Revision: 1029488

Add aws-c-mqtt to [community]

Added:
  aws-c-mqtt/
  aws-c-mqtt/repos/
  aws-c-mqtt/trunk/
  aws-c-mqtt/trunk/PKGBUILD

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

Added: aws-c-mqtt/trunk/PKGBUILD
===================================================================
--- aws-c-mqtt/trunk/PKGBUILD	                        (rev 0)
+++ aws-c-mqtt/trunk/PKGBUILD	2021-10-11 16:03:55 UTC (rev 1029488)
@@ -0,0 +1,32 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=aws-c-mqtt
+pkgver=0.7.8
+pkgrel=1
+pkgdesc='C99 implementation of the MQTT 3.1.1 specification'
+arch=(x86_64)
+url='https://github.com/awslabs/aws-c-mqtt'
+license=(Apache)
+depends=(aws-c-common aws-c-http)
+makedepends=(cmake)
+source=(aws-c-mqtt-$pkgver.zip::https://github.com/awslabs/aws-c-mqtt/archive/v$pkgver.zip)
+sha256sums=('9935c441765576641f78b95e535442d9fd878db56cb01ef5c5f9622df93de249')
+
+build() {
+  cd aws-c-mqtt-$pkgver
+
+  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -S . -B build
+  cmake --build build
+}
+
+check() {
+  cd aws-c-mqtt-$pkgver
+  cmake --build build --target test
+}
+
+package() {
+  cd aws-c-mqtt-$pkgver
+
+  cmake --build build --target install -- DESTDIR="$pkgdir/"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list