summaryrefslogtreecommitdiffstats
path: root/linhes
diff options
context:
space:
mode:
Diffstat (limited to 'linhes')
-rw-r--r--linhes/paho-mqtt-c/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
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 <laszlo.varady93@gmail.com>
+
+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"
+}