summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5caae32c14f5a14f9712887acbea1c5c4127e214 (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
# Maintainer: bitcoinlizard <bitcoinlizard at fastmail dot com>

pkgname=python-simple-websocket
pkgver=1.0.0
pkgrel=1
pkgdesc="Simple WebSocket server and client for Python."
arch=('any')
url="https://blog.miguelgrinberg.com/"
license=('MIT')
makedepends=('python-setuptools')
depends=('python' 'python-wsproto')
source=("https://github.com/miguelgrinberg/simple-websocket/archive/refs/tags/v${pkgver}.tar.gz")

sha256sums=('fb99a26c97146c806fa6fd3e074fb4d0e84d6706c45e6c728b80188b6eddd26c')

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

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