-
Notifications
You must be signed in to change notification settings - Fork 16
/
PKGBUILD
30 lines (25 loc) · 988 Bytes
/
PKGBUILD
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
pkgname=yt-dlp
pkgver=2024.07.07
pkgrel=1
pkgdesc='Command-line program to download videos from YouTube.com and other video sites'
arch=('x86_64')
url="https://github.com/yt-dlp/yt-dlp"
license=('custom')
depends=('python3-certifi' 'python3-requests' 'python3-urllib3' 'mutagen')
makedepends=('python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel' 'zip') # hatchling
conflicts=('youtube-dl')
provides=('youtube-dl')
replaces=('youtube-dl')
source=("https://github.com/yt-dlp/yt-dlp/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('dbf22287ea7d4f64714b0a85789982d3b96f3795ec8cfaed3e991a84f36bf317')
build() {
cd ${pkgname}-${pkgver}
#sed -i 's|python|python3|g' Makefile
make PREFIX=${pkgdir}/usr yt-dlp completion-bash completion-zsh completion-fish
python3 -m build -nw
}
package() {
cd ${pkgname}-${pkgver}
python3 -m installer --destdir=${pkgdir} dist/*.whl
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}