blob: d0e6f46c3f75b703361938edc5a2593227df6314 (
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
|
# Maintainer:
# Contributor: Minmo <com dot gmail at maroboromike>
# Contributor: Sematre <sematre at gmx dot de>
pkgname=yt-dlp-drop-in
pkgver=2024.08.06
pkgrel=1
pkgdesc='Provide both youtube-dl command and python imports using yt-dlp'
url="https://aur.archlinux.org/packages/yt-dlp-drop-in"
arch=('any')
license=('Unlicense')
depends=('python')
provides=("youtube-dl=${pkgver:?}")
conflicts=("youtube-dl")
source=(
"youtube-dl.py"
#"youtube-dl.sh"
)
sha256sums=(
"4b3d042525b05d84bb892a864a3ae832cc923bd630ea7e8b4d91ae9c4ec555db"
#"f2096dadce18216a3da2634202666713831ba8fb36f1f591e951c7329cc4f002"
)
pkgver() {
LANG=C LC_ALL=C pacman -Si yt-dlp | grep -Pom1 '^Version\s+:\s+\K\S+(?=-[0-9])'
}
package() {
depends+=('yt-dlp')
install -Dm755 "$srcdir/youtube-dl.py" "$pkgdir/usr/bin/youtube-dl"
local _sitepackages="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -dm755 "$pkgdir/${_sitepackages:?}"
ln -sfT "yt_dlp" "$pkgdir/$_sitepackages/youtube_dl"
}
|