blob: d5f96bd53b4751138535397cd80ddd13c5c87628 (
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
53
54
55
56
57
|
# Maintainer: peippo <christoph+aur@christophfink.com>
pkgname=python-av
_name=${pkgname#python-}
pkgdesc="Pythonic bindings for FFmpeg"
url="https://docs.mikeboers.com/pyav/"
pkgver=10.0.0
pkgrel=2
arch=("x86_64" "i686")
license=("BSD")
depends=(
"ffmpeg4.4"
"python"
"python-numpy"
"python-pillow"
)
makedepends=(
"cython"
"python-google-api-core"
"python-setuptools"
"python-wheel"
"pkgconf"
)
checkdepends=(
"autopep8"
"flake8"
"python-editorconfig"
"python-isort"
"python-pytest"
"python-sphinx"
)
source=( "https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
b2sums=('0771fb37de072b63b8f276a2c3f76461af52910433793c7261f8216ab0af58ca46d8da871352d419c231a41fdb73b7e65f8d9eb71373f540cd3407148605ea74')
build() {
export PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig"
cd "${srcdir}"/${_name}-${pkgver}
python setup.py build_ext --inplace
python setup.py build
}
check() {
cd "${srcdir}"/${_name}-${pkgver}
export PYTHONPATH="${srcdir}/${_name}-${pkgver}/build/lib.linux-$CARCH-${python_version}"
python -m pytest
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-av/LICENSE"
}
|