# Maintainer: László Várady pkgname=paho-mqtt-c pkgver=1.3.13 pkgrel=1 pkgdesc="Eclipse Paho C Client Library for the MQTT Protocol" arch=('x86_64') url="https://www.eclipse.org/paho/" license=('custom:EPL2' 'custom:EDL') depends=('openssl') makedepends=('cmake') source=("$pkgname-$pkgver.tar.gz::https://github.com/eclipse/paho.mqtt.c/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('47c77e95609812da82feee30db435c3b7c720d4fd3147d466ead126e657b6d9c') build() { cd "${pkgname//-/.}-${pkgver}" cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr \ -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_SAMPLES=TRUE \ -S . -B build cmake --build build } check() { cd "${pkgname//-/.}-${pkgver}" # cmake --build build --target test } package() { cd "${pkgname//-/.}-${pkgver}" DESTDIR="$pkgdir/" cmake --install build install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 edl-v10 "${pkgdir}/usr/share/licenses/${pkgname}/edl-v10" install -Dm644 epl-v20 "${pkgdir}/usr/share/licenses/${pkgname}/epl-v20" }