diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -13,17 +13,18 @@ _pydeps=(fonttools ufolib2 unicodedata2) # for fonttools[unicode] depends=(python - "${_pydeps[@]/#/python-}") + xmldiff + "${_pydeps[@]/#/python-}") makedepends=(python-{build,installer,wheel} - python-defcon - python-setuptools-scm - git) + python-defcon + python-setuptools-scm + git) _pycheckdeps=(lxml # for fonttools[lxml] - pytest - ufo2ft - ufonormalizer - xmldiff) -checkdepends=("${_pycheckdeps[@]/#/python-}") + pytest + ufo2ft + ufonormalizer) +checkdepends=("${_pycheckdeps[@]/#/python-}" + xmldiff) optdepends=(python-defcon python-ufonormalizer) provides=("${pkgname%-git}") @@ -36,6 +37,11 @@ pkgver() { 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 |