diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..452b0c722c2d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-hbmqtt-tulir-git + pkgdesc = An opensource MQTT client and broker, tulir's fork + pkgver = r795.2df63ac + pkgrel = 1 + arch = any + license = MIT + makedepends = git + depends = python + depends = python-docopt + depends = python-transitions + depends = python-websockets + depends = python-passlib + provides = python-hbmqtt + provides = python-hbmqtt-tulir + conflicts = python-hbmqtt + conflicts = python-hbmqtt-tulir + source = hbmqtt::git+https://github.com/tulir/hbmqtt + sha256sums = SKIP + +pkgname = python-hbmqtt-tulir-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4d0b910891bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: bobpaul + +_pkgbase=hbmqtt +pkgname=python-${_pkgbase}-tulir-git +pkgver=r795.2df63ac +pkgrel=1 +pkgdesc="An opensource MQTT client and broker, tulir's fork" +arch=(any) +conflicts=(python-hbmqtt python-hbmqtt-tulir) +provides=(python-hbmqtt python-hbmqtt-tulir) +license=(MIT) +depends=(python + python-docopt + python-transitions + python-websockets + python-passlib + ) +makedepends=(git) +optdepends=() +source=("${_pkgbase}::git+https://github.com/tulir/${_pkgbase}") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${_pkgbase}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +#prepare() { +# cd "$srcdir/${_pkgbase}" +# git reset --hard +# patch < ../usr-share.patch +#} + +package() { + cd "$srcdir/${_pkgbase}" + python setup.py install --root="$pkgdir/" --optimize=1 + install -D -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |