summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5907cacb47c5f75158391d1573bb5de74bb45479 (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
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>

pkgname=uvicorn
pkgver=0.3.21
pkgrel=2
pkgdesc="The lightning-fast ASGI server."
arch=('any')
url="https://www.uvicorn.org/"
license=('BSD')
depends=('python>=3.5' 'python-click' 'python-h11'
         'python-httptools>=0.0.11' 'python-uvloop' 'python-websockets>=6.0')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://github.com/encode/uvicorn/archive/${pkgver}.tar.gz")
sha256sums=('f333d74f94a4a82fb723ac19b207647f65269ee46dc3e31f7322f3fe6e176d6d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}