summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c230cf94b99e37d047df8162271ac271be5de3fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=python-stomp.py
_libname=stomp_py
pkgver=8.1.2
pkgrel=1
pkgdesc="Python STOMP client, supporting versions 1.0, 1.1 and 1.2 of the protocol"
arch=(any)
url="https://github.com/jasonrbriggs/stomp.py"
license=(Apache-2.0)
depends=(python python-docopt python-websocket-client)
makedepends=(python-setuptools python-wheel python-build python-installer python-poetry)
source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
sha256sums=('b56e62da090863cc65e5fbf832230318cd53e99dc777de19ecb04e83914f1371')

build() {
	cd "$srcdir"/$_libname-$pkgver
	python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir"/$_libname-$pkgver
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}