summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2021-03-22 00:37:56 +0100
committerFrederik “Freso” S. Olesen2021-03-22 00:37:56 +0100
commit0b99002867cdde5f437d0b6f744082e5de8cca4d (patch)
tree2938c718d10372a21fb4ca92ab59bfffde5c4cd2 /PKGBUILD
parent21d947ca24e23f8f93f97c8a0b10c4054b77db39 (diff)
downloadaur-0b99002867cdde5f437d0b6f744082e5de8cca4d.tar.gz
New package: youtube-dlp-bin
Forked off youtube-dlp package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 8 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index edc958f8859..25cefb046d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,27 @@
-# Maintainer: Julius <com dot gmail at julius dot dehner>
+# Maintainer: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
+# Contributor: Julius <com dot gmail at julius dot dehner>
# Contributor: vixfwis <com dot gmail at vixfwis>
-pkgname=youtube-dlp
+_pkgname=youtube-dlp
+pkgname=${_pkgname}-bin
_gitname=yt-dlp
pkgver=2021.03.15
_gitpkgver="2021.03.15"
pkgrel=1
pkgdesc="Fork of youtube-dlc - download videos from youtube.com or other video platforms"
arch=('any')
-url="https://github.com/yt-dlp/yt-dlp"
+url="https://github.com/yt-dlp/${_gitname}"
license=('Unlicense')
depends=('python')
-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'
'python-pycryptodome: for hlsnative downloader')
-source=("https://github.com/pukkandan/${_gitname}/archive/${_gitpkgver}.tar.gz")
+source=("yt-dlp-${_gitpkgver}::${url}/releases/download/${_gitpkgver}/yt-dlp")
provides=('yt-dlp')
-sha256sums=('6de526f7bdd6cfd68893c32029f9f7903e08d4ae633d71579ec5231f1ceecc25')
-
-prepare() {
- cd ${_gitname}-${_gitpkgver}
- 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 ${_gitname}-${_gitpkgver}
- make PREFIX="${pkgdir}/usr" README.txt yt-dlp.1 completion-bash completion-zsh completion-fish
- export PYTHONHASHSEED=0
- python setup.py build
-}
+sha256sums=('9542d095c5abe44e2ec08091f7ff0fd905fd43b1864afa44ea4981080ff9bd01')
package() {
- cd ${_gitname}-${_gitpkgver}
- python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm755 "yt-dlp-${_gitpkgver}" "${pkgdir}/usr/bin/yt-dlp"
}