# Maintainer: Qirui Wang # Contributor: Carl George < arch at cgtx dot us > _name="sanic" pkgname="python-$_name" pkgver=22.12.0 pkgrel=1 pkgdesc='Async Python 3.6+ web server/framework | Build fast. Run fast.' arch=("any") url='https://sanic.dev/' license=("MIT") depends=( 'python-sanic-routing' 'python-httptools' 'python-aiofiles' 'python-websockets' 'python-multidict' 'python-uvloop' 'python-ujson' ) makedepends=("python-setuptools") source=("https://github.com/sanic-org/${_name}/archive/v${pkgver}.tar.gz") sha256sums=('d0bb80a906112ed81340e8273d06d6a45086b897ef4af507326a2b0b1a207025') build() { cd "$_name-$pkgver" python setup.py build } package() { cd "$_name-$pkgver" python setup.py install --skip-build --root="$pkgdir" --optimize=1 install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/licence" }