summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44f88b27fb7bd73e200fa6b2a49c1ad60ed6f5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# PKGBUILD generated by pipman
# Python package author: Ihor Kalnytskyi <ihor@kalnytskyi.com>
# Maintainer: denkijin < dandenkijin at protonmain dot com >

pkgname=python-sphinxcontrib-openapi
pkgver=0.8.4
pkgrel=1
pkgdesc="OpenAPI (fka Swagger) spec renderer for Sphinx"
arch=(any)
url="https://github.com/sphinx-contrib/openapi"
license=(BSD)
makedepends=("python" "python-pip")
build() {
  pip install --no-deps --target="sphinxcontrib-openapi" sphinxcontrib-openapi==$pkgver
}
package() {
  sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
  mkdir -p $pkgdir/"$sitepackages"
  cp -r $srcdir/sphinxcontrib-openapi/* $pkgdir/"$sitepackages"
}