summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 882352e515f8e434128e6e2f4714a9697c2dcfe9 (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
# Maintainer: Vekhir <vekhir AT yahoo DOT com>

pkgname='python-pyffms2'
pkgver=0.4.5.5
pkgrel=2
pkgdesc='pyffms2 – Python bindings for FFMS2'
arch=('any')
url='https://github.com/bubblesub/pyffms2/'
license=('LGPL3')
depends=('python' 'ffms2' 'python-numpy')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("pyffms2-${pkgver}.tar.gz::https://github.com/bubblesub/pyffms2/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('bc06b2f0460a05e542f7612d05a10b9954ac99c392674f94adbb89e2bcdb3571')

build() {
  cd pyffms2-${pkgver}/
  python -m build --wheel --no-isolation
}

check() {
  cd pyffms2-${pkgver}/
  export PYTHONPATH="."
  python -m unittest
}

package() {
  cd pyffms2-${pkgver}/
  python -m installer --destdir="$pkgdir" dist/*.whl
}