diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 28 insertions, 14 deletions
@@ -2,29 +2,43 @@ pkgname=drawbot-skia pkgver=0.4.8 -pkgrel=2 -pkgdesc='A tool for the removal of TrueType instruction sets (hints) in fonts' +pkgrel=3 +pkgdesc='A Python package implementing a subset of the DrawBot API using Skia as a backend' arch=(any) url="https://github.com/justvanrossum/$pkgname" license=(MIT) +_pydeps=(bidi + fonttools + 'skia>=87.2' + 'skia-pathops>=0.6.0.post2' + 'uharfbuzz>=0.16.1' + unicodedata2) # for fonttools[unicode] depends=(python - python-bidi - 'python-fonttools>=4.24.3' - 'python-skia>=87.2' - 'python-skia-pathops>=0.6.0.post2' - 'python-uharfbuzz>=0.16.1' - python-unicodedata2) + "${_pydeps[@]/#/python-}") makedepends=(python-setuptools-scm) -source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") +optdepends=('python-pyffmpeg: for video features') +checkdepends=(python-pyffmpeg + python-numpy + python-pillow + python-pytest) +_archive="$pkgname-$pkgver" +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz") sha256sums=('61d4169b10fca6cea40f4d97898c36de0274c918923582ef0eef5767d6f7c161') build() { - cd "$pkgname-$pkgver" - python setup.py build + cd "$_archive" + export PYTHONHASHSEED=0 + python setup.py build +} + +check() { + cd "$_archive" + PYTHONPATH=src pytest tests \ + -k 'not test_saveImage_mp4_codec and not test_runner_app' } package() { - cd "$pkgname-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt + cd "$_archive" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt } |