pkgname=yt-dlp pkgver=2024.04.09 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=('fa2a21946b886f914ccc5ee18a9dc41b628745a51e04d136c6baec06ed4bded6') 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 }