summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5223e3df3070e0bf6baf83ce7099cb27383f109 (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: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: xantares
# Contributor: asuka minato

_pkgname=doc2dash
pkgname=python-$_pkgname
pkgver=3.1.0
pkgrel=1
pkgdesc="Create docsets for Dash.app/Zeal-compatible API browsers"
url='https://doc2dash.hynek.me/'
arch=(any)
license=(MIT)
makedepends=(python-hatch-vcs python-hatch-fancy-pypi-readme python-build
             python-installer python-wheel python-hatchling)
depends=(python python-attrs python-beautifulsoup4 python-click python-rich)
source=(
"https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('37f61c8d8f6a955d2466b9c073eb2bff44cc54352bf817afb48a3ac8aef6d594')

build() {
  cd $_pkgname-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_pkgname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -vDm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}