blob: 1b6c9595f566c82f9875724b1863cbb3498ac821 (
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
|
# Maintainer: peippo <christoph+aur@christophfink.com>
pkgname=python-av
_name=${pkgname#python-}
_upstream_name="PyAV"
pkgdesc="Pythonic bindings for FFmpeg"
url="https://docs.mikeboers.com/pyav/"
pkgver=11.0.0
pkgrel=2
arch=("x86_64" "i686")
license=("BSD")
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=( "https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
# upload failed upstream: https://github.com/PyAV-Org/PyAV/actions/runs/6747799842/job/18350415863
source=( "$_name-$pkgver.tar.gz::https://github.com/${_upstream_name}-Org/${_upstream_name}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=("614c0338b207dbc88f9f7df9309a044df35707061af0986062f5ec7ad4dee4724eec1c37940623d1accc3ec1ded589a4a62087a3beaa6c2ef8be8524eeaab825")
build() {
export PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig"
cd "${srcdir}"/${_upstream_name}-${pkgver}
python setup.py build_ext --inplace
python setup.py build
}
check() {
cd "${srcdir}"/${_upstream_name}-${pkgver}
export PYTHONPATH="${srcdir}/${_upstream_name}-${pkgver}/build/lib.linux-$CARCH-${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"
}
|