blob: b4fb8b22992ab5a5faf0133e059ce05239d41201 (
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
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-mutatormath-git
pkgver=3.0.1.r3.gb0a87ec
pkgrel=2
pkgdesc='Python library for piecewise linear interpolation in multiple dimensions with multiple, arbitrarily placed, masters.'
url='https://github.com/LettError/MutatorMath'
license=('BSD')
arch=(any)
depends=(python
python-defcon
python-fontmath
python-fonttools)
makedepends=(git
python-{build,installer}
python-setuptools
python-wheel)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "$pkgname"
python -m build -wn
}
package() {
cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
}
|