blob: a9352cbe6f1ada3cd10200cf2469f2fc86b4fa79 (
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
|
# Maintainer: Grafcube <grafcube at disroot dot org>
_pkgname=docopt-ng
pkgname=python-${_pkgname}
pkgver=0.9.0
pkgrel=1
pkgdesc="Jazzband-maintained fork of docopt, the humane command line arguments parser."
url="https://github.com/jazzband/docopt-ng"
depends=(python python-regex)
makedepends=(git python-build python-pdm-backend python-installer python-wheel)
license=('MIT')
arch=('any')
source=("$_pkgname::git+$url.git#tag=$pkgver")
sha256sums=('ac7004380758ba25be8b2868819c8c2efbc75fd291342e37a6d07f59ee6d2392')
build() {
cd "${_pkgname}"
export PDM_BUILD_SCM_VERSION=$pkgver
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|