blob: d543037b9049dffb1e2951462cb684a315022d33 (
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
31
|
# Maintainer: J. Nathanael Philipp (jnphilipp) <nathanael@philipp.land>
_pkgname=pathlib-abc
pkgname=python-${_pkgname}
pkgver=0.3.1
pkgrel=1
pkgdesc="Python base classes for rich path objects"
arch=(x86_64 aarch64)
url="https://github.com/barneygale/pathlib-abc"
license=("PSF-2.0")
depends=(python)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
python-hatchling
)
source=("https://github.com/barneygale/${_pkgname}/archive/refs/tags/${pkgver}.zip")
b2sums=("bbbdd8ff5cca8cdfc3b7921cf6c4bfc6062235a08e3bd93c964fb9280a56b0e769b83f0e53d9a9d4d217020b9fbdb4339c859f0c119e7ebcd25fe837489bea75")
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LIE"
}
|