blob: 8f61eda0cc334fa4688f123c3ca0d29839bdb1c2 (
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
|
# Maintainer:
_module='python-ffmpeg'
_pkgname="python-$_module"
pkgname="$_pkgname-git"
pkgver=2.0.12.r0.gf8fafba
pkgrel=1
pkgdesc="Python binding for FFmpeg which provides sync and async APIs"
url="https://github.com/jonghwanhyeon/python-ffmpeg"
license=('MIT')
arch=(any)
depends=(
'ffmpeg'
'python'
'python-pyee'
'python-typing_extensions'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-pytest'
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=(
"$_pkgname"
'python-ffmpeg-python'
)
options=(!emptydirs)
_pkgsrc="$_module"
source=("$_module"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgsrc"
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd "$_pkgsrc"
PYTHONPATH="$PWD" python -m pytest || :
}
package() {
cd "$_pkgsrc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|