blob: 6b39c0eb765b572c99ee823f1bc3b233ffa458af (
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
|
# Maintainer: willemw <willemw12@gmail.com>
pkgname=python-ffmpeg-progress-yield-git
pkgver=1.0.3.r0.g9c60183
pkgrel=1
pkgdesc='Run an FFmpeg command with its progress yielded'
arch=(any)
url=https://github.com/slhck/ffmpeg-progress-yield
license=(MIT)
depends=(ffmpeg python-tqdm)
checkdepends=(ffmpeg procps-ng python-pytest-asyncio uv)
#makedepends=(git python-build python-installer python-uv-build)
makedepends=(git python-installer uv)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha512sums=('SKIP')
pkgver() {
git -C $pkgname describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
git -C $pkgname clean -dfx
}
build() {
cd $pkgname
#python -m build --wheel --no-isolation
uv --no-cache --offline build --no-build-isolation --out-dir=dist --wheel .
}
check() {
cd $pkgname
uv venv --system-site-packages
uv --offline --no-cache pip install --link-mode=copy --no-deps dist/*.whl
PATH=".venv/bin:$PATH" ./.venv/bin/python -m pytest tests
}
package() {
cd $pkgname
install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|