blob: 95856e2885ea574789658bc314b769bde560b158 (
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
58
59
60
61
62
63
64
|
# Maintainer: peippo <christoph+aur@christophfink.com>
pkgname=python-av
_name=${pkgname#python-}
_upstream_name="PyAV"
pkgdesc="Pythonic bindings for FFmpeg"
url="https://pyav.basswood-io.com"
pkgver=13.1.0
pkgrel=1
arch=("x86_64" "i686")
license=("BSD-3-Clause")
depends=(
"ffmpeg"
"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=(
"$_name-$pkgver.tar.gz::https://github.com/${_upstream_name}-Org/${_upstream_name}/archive/refs/tags/v${pkgver}.tar.gz"
)
b2sums=("0c34d65a23998af1b61c7ac4610891f3e38dfa8cf6f5eadaf123eea61c4cf010a7a48de8ef26db195b48edc06e256cb5a94794212f0d7c6ae4a3e82ae5725b3e")
build() {
cd "${srcdir}"/${_upstream_name}-${pkgver}
export PKG_CONFIG_PATH="/usr/lib/ffmpeg6.1/pkgconfig/"
python setup.py build_ext --inplace
python setup.py build
}
check() {
cd "${srcdir}"/${_upstream_name}-${pkgver}
local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
export PYTHONPATH="${srcdir}/${_upstream_name}-${pkgver}/build/lib.linux-${CARCH}-cpython-${python_version}"
python -m pytest
}
package() {
cd "${srcdir}/${_upstream_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-av/LICENSE"
}
|