blob: f93e4447f41ba0fc6025a39ea784a30f8c36e9d0 (
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
|
# Maintainer: Caesim404 <caesim404 at gmail dot com>
# Contributor: sumt <sumt at sci dot fi>
# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
pkgname=yle-dl-git
pkgver=20250227.r1.g7c53d14
pkgrel=1
pkgdesc="Download video and audio from YLE Areena."
arch=("any")
url="http://aajanki.github.io/yle-dl/"
license=('GPL-3.0-or-later')
depends=('ffmpeg'
'python-attrs'
'python-configargparse'
'python-lxml'
'python-requests'
)
optdepends=('wget: for some rare streams')
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-flit-core'
)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=("$pkgname::git+https://github.com/aajanki/yle-dl.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^releases\///g'
}
prepare() {
cd "$pkgname"
git clean -dfx
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|