blob: 186ff077c01fb99c68600c1db98056484e075c02 (
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
|
# Maintainer: Michael Serajnik <m at mser dot at>
pkgname=10ff-git
_pkgname=10ff
pkgver=r56.9be5cf0
pkgrel=1
pkgdesc="Typing tests in CLI"
arch=("any")
url="https://github.com/rr-/${_pkgname}"
license=("WTFPL")
depends=("python")
makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
source=("git+https://github.com/rr-/${_pkgname}.git")
md5sums=("SKIP")
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "$srcdir/$_pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
|