blob: 36edd9fcff8393349595a958f9d535e959812e62 (
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
|
# Maintainer: mark.blakeney at bullet-systems dot net
_pkgname=argparse-from-file
pkgname=python-$_pkgname
pkgver=1.8
pkgrel=1
pkgdesc="Wrapper around Python argparse to prepend options from a user configuration file"
url="https://github.com/bulletmark/$_pkgname"
license=("GPL-3.0-or-later")
arch=("any")
depends=("python>=3.8" "python-platformdirs")
makedepends=(python-setuptools python-build python-installer
python-wheel python-setuptools-scm)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha1sums=('c77304ae65694aefd8a769bb45f225602b957d8c')
build() {
cd "$srcdir/$_pkgname-$pkgver"
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|