blob: 6b245ddd2e109a29b2875430d08479922f99d75e (
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
|
# Maintainer: Kimiblock Moe
pkgname=yt-dlp-youtube-oauth2-git
provides=(yt-dlp-youtube-oauth2)
pkgdesc="Plugin that adds OAuth2 login support to yt-dlp's YouTube extractors"
url=https://github.com/coletdjnz/yt-dlp-youtube-oauth2
license=(LicenseRef-none MIT)
arch=(any)
pkgver=2024.9.29.r0.g67ca8d64
pkgrel=1
makedepends=(python-build python-installer python-wheel git python-packaging)
depends=(python yt-dlp)
source=(
"git+https://github.com/coletdjnz/yt-dlp-youtube-oauth2.git"
)
sha256sums=(
"SKIP"
)
function pkgver() {
cd "${srcdir}/yt-dlp-youtube-oauth2"
git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
function build() {
cd "${srcdir}/yt-dlp-youtube-oauth2"
#python -m build --wheel --no-isolation
}
function package() {
cd "${srcdir}/yt-dlp-youtube-oauth2"
#python -m installer --destdir="${pkgdir}" dist/*.whl
install -d "${pkgdir}"/etc/yt-dlp/plugins/yt-dlp-youtube-oauth2
cp -r yt_dlp_plugins "${pkgdir}"/etc/yt-dlp/plugins/yt-dlp-youtube-oauth2
}
|