pkgbuild-youtube-dl

Command-line program to download videos from YouTube.com and other video sites
git clone git://fossdaily.xyz/pkgbuild-youtube-dl
Log | Files | Refs

commit de02974f51fc33d61a27fd0cd1baf36780af0d9c
Author: caltlgin <contact@fossdaily.xyz>
Date:   Wed, 18 Nov 2020 17:41:54 +1300

Add to caltlgin repo

Diffstat:
A.SRCINFO | 20++++++++++++++++++++
A.gitignore | 4++++
APKGBUILD | 41+++++++++++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = youtube-dl + pkgdesc = Command-line program to download videos from YouTube.com and other video sites + pkgver = 2020.11.18 + pkgrel = 1 + url = https://ytdl-org.github.io/youtube-dl + arch = any + license = Unlicense + makedepends = git + makedepends = pandoc + makedepends = python-setuptools + depends = python + optdepends = ffmpeg: for video post-processing + optdepends = rtmpdump: for rtmp streams support + optdepends = atomicparsley: for embedding thumbnails into m4a files + optdepends = python-pycryptodome: for hlsnative downloader + source = youtube-dl::git+https://github.com/ytdl-org/youtube-dl.git#tag=2020.11.18 + sha256sums = SKIP + +pkgname = youtube-dl + diff --git a/.gitignore b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='youtube-dl' +pkgver=2020.11.18 +pkgrel=1 +pkgdesc='Command-line program to download videos from YouTube.com and other video sites' +arch=('any') +url='https://ytdl-org.github.io/youtube-dl' +_url_pypi='https://pypi.org/project/youtube-dl' +_url_source='https://github.com/ytdl-org/youtube-dl' +license=('Unlicense') +depends=('python') +makedepends=('git' 'pandoc' 'python-setuptools') +optdepends=('ffmpeg: for video post-processing' + 'rtmpdump: for rtmp streams support' + 'atomicparsley: for embedding thumbnails into m4a files' + 'python-pycryptodome: for hlsnative downloader') +source=("${pkgname}::git+${_url_source}.git#tag=${pkgver}") +sha256sums=('SKIP') + +prepare() { + cd "${pkgname}" + sed -i.bak 's|etc/bash_completion.d|share/bash-completion/completions|' 'setup.py' + sed -i.bak 's|etc/fish/completions|share/fish/vendor_completions.d|' 'setup.py' +} + +build() { + cd "${pkgname}" + make pypi-files zsh-completion + python setup.py build +} + +package() { + cd "${pkgname}" + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + mv -fv "${pkgdir}/usr/share/bash-completion/completions/${pkgname}.bash-completion" \ + "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" + install -Dvm644 "${pkgname}.zsh" "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" +} + +# vim: ts=2 sw=2 et: