blob: cdb04727d8c9b3205d12280024a4ad2b0ef8f6bc (
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
42
43
44
45
46
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-fontpens-git
pkgver=0.2.4.r14.gd8d26fe
pkgrel=1
pkgdesc='A collection of classes implementing the pen protocol for manipulating glyphs.'
url='https://github.com/robotools/fontpens'
license=('BSD')
arch=(any)
depends=(python
python-fonttools)
checkdepends=(python-fontparts
python-pytest)
makedepends=(python-{build,installer,wheel}
python-setuptools-scm
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "$pkgname"
python -m build -wn
}
# check() {
# cd "$pkgname"
# PYTHONPATH=Lib pytest Lib
# }
package() {
cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
}
|