blob: faf5be1625e3ea5b849e4b64e968bf9b39741ad6 (
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: Benjamin Winger <bmw@disroot.org>
pkgname=python-fasteners-git
pkgver=0.17.3.r8.g5d8de5f
pkgrel=1
pkgdesc="A python package that provides useful locks."
provides=('python-fasteners')
conflicts=('python-fasteners')
arch=(any)
url="https://github.com/harlowja/fasteners"
license=(Apache)
depends=("python")
makedepends=("git" "python-setuptools" "python-build" "python-installer")
source=("fasteners::git+${url}")
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/fasteners"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/fasteners"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$srcdir/fasteners"
python -m installer --destdir $pkgdir dist/*.whl
}
|