From d5eb7e404b3d4aa5dd4213bc7f6464a3be9a53cb Mon Sep 17 00:00:00 2001
From: "Edgar P. Burkhart" <git@edgarpierre.fr>
Date: Sun, 9 Mar 2025 11:14:44 +0100
Subject: [PATCH] Add PKGBUILD and .SRCINFO for python-paho-mqtt-2 package

---
 .SRCINFO   | 16 ++++++++++++++++
 .gitignore |  4 ++++
 PKGBUILD   | 31 +++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)
 create mode 100644 .SRCINFO
 create mode 100644 .gitignore
 create mode 100644 PKGBUILD

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..eb029d6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-paho-mqtt-2
+	pkgdesc = Python client library for MQTT v5.0, v3.1.1 and v3.1
+	pkgver = 2.1.0
+	pkgrel = 1
+	url = https://eclipse.dev/paho/clients/python/
+	arch = any
+	license = custom
+	makedepends = python-hatch
+	makedepends = python-installer
+	depends = python
+	provides = python-paho-mqtt
+	conflicts = python-paho-mqtt
+	source = python-paho-mqtt-2-2.1.0.tar.gz::https://github.com/eclipse-paho/paho.mqtt.python/archive/refs/tags/v2.1.0.tar.gz
+	sha256sums = 3602ce9d1ada58b063f2052ff013ff8cdd06d66cef918d5f6d048b6f68ccf049
+
+pkgname = python-paho-mqtt-2
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c6e8daf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
\ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..7660bc3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# This is an example PKGBUILD file. Use this as a start to creating your own,
+# and remove these comments. For more information, see 'man PKGBUILD'.
+# NOTE: Please fill out the license field for your package! If it is unknown,
+# then please put 'unknown'.
+
+# Maintainer: edpibu <git@edgarpierre.fr>
+pkgname=python-paho-mqtt-2
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Python client library for MQTT v5.0, v3.1.1 and v3.1"
+arch=('any')
+url="https://eclipse.dev/paho/clients/python/"
+license=('custom')
+depends=('python')
+makedepends=('python-hatch' 'python-installer')
+provides=('python-paho-mqtt')
+conflicts=('python-paho-mqtt')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/eclipse-paho/paho.mqtt.python/archive/refs/tags/v${pkgver}.tar.gz")
+sha256sums=('3602ce9d1ada58b063f2052ff013ff8cdd06d66cef918d5f6d048b6f68ccf049')
+validpgpkeys=()
+
+build() {
+	ls
+	cd "paho.mqtt.python-$pkgver"
+	python -m hatch build
+}
+
+package() {
+	cd "paho.mqtt.python-$pkgver"
+	python -m installer --destdir="${pkgdir}" dist/*.whl
+}