Add PKGBUILD and .SRCINFO for python-paho-mqtt-2 package

This commit is contained in:
Edgar P. Burkhart 2025-03-09 11:14:44 +01:00
commit d5eb7e404b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 51 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -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

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!PKGBUILD
!.SRCINFO
!.gitignore

31
PKGBUILD Normal file
View file

@ -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
}