diff options
author | Stefan Tatschner | 2021-09-02 16:07:55 +0200 |
---|---|---|
committer | Stefan Tatschner | 2021-09-02 16:07:55 +0200 |
commit | 60293d158be9f892cf4dccc65bb049d3a6dbe5d1 (patch) | |
tree | 6fc46103bec3b116446bf3298dbff2329b53a47b | |
download | aur-60293d158be9f892cf4dccc65bb049d3a6dbe5d1.tar.gz |
Initial upload: yt-dlp 2021.09.02-1
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4048683b6925 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = yt-dlp + pkgdesc = A youtube-dl fork with additional features and fixes + pkgver = 2021.09.02 + pkgrel = 1 + url = https://github.com/yt-dlp/yt-dlp + arch = any + license = Unlicense + makedepends = git + makedepends = glibc + makedepends = pandoc + makedepends = python-setuptools + depends = python + depends = python-mutagen + depends = python-pycryptodome + depends = python-websockets + optdepends = ffmpeg: for video post-processing + optdepends = rtmpdump: for rtmp streams support + optdepends = atomicparsley: for embedding thumbnails into m4a files + optdepends = aria2: for using aria2 as external downloader + source = https://github.com/yt-dlp/yt-dlp/releases/download/2021.09.02/yt-dlp.tar.gz + sha256sums = 6fd6a32ba43ea10ff12dd96c744b531c9b2a79a883b5f06f431a99e3bfc59598 + +pkgname = yt-dlp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d4db56ee4cb3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Stefan Tatschner <stefan@rumpelsepp.org> +# Contributor: katt <magunasu.b97@gmail.com> + +pkgname=yt-dlp +pkgver=2021.09.02 +pkgrel=1 +pkgdesc='A youtube-dl fork with additional features and fixes' +arch=(any) +url=https://github.com/yt-dlp/yt-dlp +license=(Unlicense) +depends=(python python-mutagen python-pycryptodome python-websockets) +makedepends=(git glibc pandoc python-setuptools) +optdepends=('ffmpeg: for video post-processing' + 'rtmpdump: for rtmp streams support' + 'atomicparsley: for embedding thumbnails into m4a files' + 'aria2: for using aria2 as external downloader') +source=("https://github.com/yt-dlp/yt-dlp/releases/download/${pkgver}/yt-dlp.tar.gz") +sha256sums=('6fd6a32ba43ea10ff12dd96c744b531c9b2a79a883b5f06f431a99e3bfc59598') + +prepare() { + cd "$pkgname" + sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py + sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py +} + +build() { + cd "$pkgname" + make PREFIX="${pkgdir}/usr" README.txt yt-dlp.1 completion-bash completion-zsh completion-fish + export PYTHONHASHSEED=0 + python setup.py build +} + +package() { + cd "$pkgname" + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build +} |