blob: e8ad08531bc573da54baa4de410f6a051331b693 (
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
47
48
49
50
51
52
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=gftools
pkgver=0.8.3
pkgrel=1
pkgdesc='Misc tools for working with the Google Fonts library'
arch=(any)
url="https://github.com/googlefonts/$pkgname"
license=(Apache)
_py_deps=(babelfont
brotli
browserstack-local
fontmake
fonttools
fs # optdepends of fonttols required for [ufo]
glyphslib
opentype-sanitizer
protobuf
pyaml
pybrowserstack-screenshots
pygit2
pygithub
requests
strictyaml
tabulate
ttfautohint-py
unidecode
vttlib)
depends=(absl-py
python
"${_py_deps[@]/#/python-}"
statmake)
makedepends=(python-setuptools-scm)
_archive="$pkgname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz")
sha256sums=('6d27e0f04432d730c2d857ce3444bcd1f39ab868dac1da159ba15edc30a91c72')
prepare() {
cd "$_archive"
sed -i -e "/setup_requires/s/>=.*'/'/" setup.py
}
build() {
cd "$_archive"
python setup.py build
}
package() {
cd "$_archive"
export PYTHONHASHSEED=0
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|