diff options
author | bobpaul | 2020-02-18 00:56:54 -0600 |
---|---|---|
committer | bobpaul | 2020-02-18 00:56:54 -0600 |
commit | ccc6dd743db1f8a1f51ec2c2dd06425039b63584 (patch) | |
tree | 3ca5bc318ae1da03367a2652aca0c5c6259b65b5 /PKGBUILD | |
download | aur-python-hbmqtt-tulir-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
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" +} |