Guest User

Untitled

a guest
Sep 5th, 2021
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>
  2. # Contributor: Julius <com dot gmail at julius dot dehner>
  3. # Contributor: vixfwis <com dot gmail at vixfwis>
  4.  
  5. pkgname=youtube-dlp
  6. _gitname=yt-dlp
  7. pkgver=2021.09.02
  8. pkgrel=1
  9. pkgdesc="Fork of youtube-dlc - download videos from youtube.com or other video platforms"
  10. arch=('any')
  11. url="https://github.com/yt-dlp/yt-dlp"
  12. license=('Unlicense')
  13. depends=(
  14. 'python'
  15. 'python-mutagen'
  16. 'python-pycryptodome'
  17. 'python-websockets'
  18. )
  19. makedepends=('git' 'glibc' 'pandoc' 'python-setuptools' 'make')
  20. optdepends=(
  21. 'ffmpeg: for video post-processing'
  22. 'rtmpdump: for rtmp streams support'
  23. 'atomicparsley: for embedding thumbnails into m4a files'
  24. 'aria2: for using aria2 as external downloader'
  25. )
  26. source=("$pkgname-$pkgver.tar.gz::https://github.com/yt-dlp/${_gitname}/archive/${pkgver}.tar.gz")
  27. provides=('yt-dlp')
  28. sha256sums=('d73ab004bd4006103fe01d28870904005832bb9cfb758d2fdea8a5aba7ae2a8b')
  29. prepare() {
  30. cd ${_gitname}-${pkgver}
  31. sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
  32. sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py
  33. }
  34.  
  35. build() {
  36. cd ${_gitname}-${pkgver}
  37. make PREFIX="${pkgdir}/usr" README.txt yt-dlp.1 completion-bash completion-zsh completion-fish
  38. export PYTHONHASHSEED=0
  39. python setup.py build
  40. }
  41.  
  42. package() {
  43. cd ${_gitname}-${pkgver}
  44. python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
  45. }
  46.  
RAW Paste Data