From d743e84fb10444c6a2df215602e9318a3842442a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 26 Nov 2024 16:22:16 -0500 Subject: paho-mqtt-c: initial inclusion; dep of powerpanel --- linhes/paho-mqtt-c/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 linhes/paho-mqtt-c/PKGBUILD diff --git a/linhes/paho-mqtt-c/PKGBUILD b/linhes/paho-mqtt-c/PKGBUILD new file mode 100644 index 0000000..28b07de --- /dev/null +++ b/linhes/paho-mqtt-c/PKGBUILD @@ -0,0 +1,35 @@ +# 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" +} -- cgit v0.12