summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2c66cd5705595960f0888bff2ce5afeb5bedb8a (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
26
27
28
29
30
# Maintainer: Septire <mushroomgecko@gmail.com>

pkgname=python-flask-sock
pkgver=0.7.0
pkgrel=1
pkgdesc="WebSocket support for Flask. What makes this extension different than others is that it does not require a greenlet based server (gevent, eventlet) to work."
arch=('any')
url="https://blog.miguelgrinberg.com/"
license=('MIT')
makedepends=('python-setuptools')
depends=('python' 'python-flask' 'python-simple-websocket')
source=("https://github.com/miguelgrinberg/flask-sock/archive/refs/tags/v${pkgver}.tar.gz")

sha256sums=('36a035d8e0d8fd0b649e2e8035a368e7de9d491bdae4b9defeb121f7b94ee76b')

build()
{
  #  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
  cd "flask-sock-${pkgver}"
  python setup.py build
}

package() 
{
  cd "flask-sock-${pkgver}"
  python setup.py install --root="$pkgdir" --optimize=1
  
  # Install license since the package doesn't include it
  install -Dm 644 "${srcdir}/flask-sock-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}