blob: 4f21a511a0f25788b2694e72f116c8d402799e45 (
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
|
# Maintainer: willemw <willemw12@gmail.com>
pkgname=ffmpeg-normalize-git
pkgver=1.31.3.r6.g6fa83be
pkgrel=1
pkgdesc='Normalize loudness of audio and video files using FFmpeg'
arch=(any)
url=https://github.com/slhck/ffmpeg-normalize
license=(MIT)
depends=(ffmpeg python-colorlog python-ffmpeg-progress-yield python-mutagen python-tqdm)
checkdepends=(python-pytest)
makedepends=(git python-build python-installer python-wheel python-setuptools)
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
}
check() {
cd $pkgname
pytest test/test.py
}
package() {
cd $pkgname
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|