* add aws-c-mqtt

This commit is contained in:
Alexander Baldeck 2025-02-07 12:20:35 +01:00
parent fb83b9556c
commit 58f7827cf5
3 changed files with 64 additions and 0 deletions

20
aws-c-mqtt/.SRCINFO Normal file
View File

@ -0,0 +1,20 @@
pkgbase = aws-c-mqtt
pkgdesc = C99 implementation of the MQTT 3.1.1 specification
pkgver = 0.12.1
pkgrel = 1
url = https://github.com/awslabs/aws-c-mqtt
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = Apache-2.0
makedepends = cmake
depends = aws-c-common
depends = aws-c-http
depends = aws-c-io
depends = glibc
source = aws-c-mqtt-0.12.1.tar.gz::https://github.com/awslabs/aws-c-mqtt/archive/v0.12.1.tar.gz
sha256sums = 04abe47c798bf9dcb95e25ea9acd62a35a3f22e58b61c16912a6275c2f8230fe
pkgname = aws-c-mqtt

View File

@ -0,0 +1,4 @@
[aws-c-mqtt]
source = "git"
git = "https://github.com/awslabs/aws-c-mqtt.git"
prefix = "v"

40
aws-c-mqtt/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=aws-c-mqtt
pkgver=0.12.1
pkgrel=1
pkgdesc='C99 implementation of the MQTT 3.1.1 specification'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/awslabs/aws-c-mqtt'
license=(Apache-2.0)
depends=(
aws-c-common
aws-c-http
aws-c-io
glibc
)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('04abe47c798bf9dcb95e25ea9acd62a35a3f22e58b61c16912a6275c2f8230fe')
build() {
cd $pkgname-$pkgver
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-DBUILD_SHARED_LIBS=ON
cmake --build build
}
check() {
cd $pkgname-$pkgver
cmake --build build --target test
}
package() {
cd $pkgname-$pkgver
DESTDIR="$pkgdir" cmake --install build
}