Package Details: youtube-dl-git 2018.08.04.r3.d37dc6e1c-1

Git Clone URL: https://aur.archlinux.org/youtube-dl-git.git (read-only)
Package Base: youtube-dl-git
Description: A small command-line program to download videos from YouTube.com and a few more sites (git version)
Upstream URL: https://github.com/rg3/youtube-dl
Keywords: download player streaming video youtube
Licenses: custom
Conflicts: youtube-dl
Provides: youtube-dl
Submitter: baskerville
Maintainer: disastro
Last Packager: disastro
Votes: 116
Popularity: 1.003995
First Submitted: 2012-02-27 11:10
Last Updated: 2018-08-09 12:42

Required by (100)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

yan12125 commented on 2016-01-17 19:04

Sorry for the fragile LC_ALL=en_US.UTF-8 hacking. The following patch to PKGBUILD should fix all the problems. @colinkeenan @jamietanna could you check this patch works without PYTHONIOENCODING or LC_ALL tricks?

diff --git a/PKGBUILD b/PKGBUILD
index 0d0c88a..1ea1a28 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,13 +29,18 @@ pkgver() {
echo $DATE.$HASH
}

-source=("$pkgname-$(pkgver).zip::https://github.com/rg3/$_name/archive/$_branch.zip")
-sha512sums=(SKIP)
+source=(
+ "$pkgname-$(pkgver).zip::https://github.com/rg3/$_name/archive/$_branch.zip"
+ 'https://github.com/yan12125/youtube-dl/commit/8ae63d1bb7f4f07529f3978da0dc4b82e67ddc62.patch'
+)
+sha512sums=(SKIP '8b20a4b3360b7ef48a7a4df5651026f0e97d1f11a4d1fa66ce0dc8173e87bbb9d0dbf44328dbd7fe7f6ebe742e38de4a985d5d731c537e831a1e2ef40af05b91')

prepare() {
cd $_name-$_branch
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
+
+ patch -Np1 -i ../8ae63d1bb7f4f07529f3978da0dc4b82e67ddc62.patch
}

package() {

colinkeenan commented on 2016-01-17 05:50

With today's update (1/16/2016), the build fails complaining about some ascii conversion, but I got it to work by adding the following to /etc/environment:

PYTHONIOENCODING=utf-8

Smola commented on 2016-01-14 21:13

@jamietanna It's better to set it to `LC_ALL=C`.

jamietanna commented on 2016-01-14 21:04

Hey @flu, I've just done an upgrade, and found that the build fails on the `make` command, with the warning `/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` if the user does not have en_US.UTF-8 installed. This may not be very common, but thought I'd document it nonetheless.

I've found the following patch to work - hopefully it helps others who have the same issue.

```
diff --git a/PKGBUILD b/PKGBUILD
index 8555004..93c476a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -41,7 +41,7 @@ prepare() {
package() {
cd $_name-$_branch

- LC_ALL=en_US.UTF-8 make bash-completion zsh-completion fish-completion README.txt youtube-dl.1
+ make bash-completion zsh-completion fish-completion README.txt youtube-dl.1
python setup.py install --root="$pkgdir" --optimize=1

mv "$pkgdir"/usr/share/bash-completion/completions/youtube-dl.bash-completion \
```

yan12125 commented on 2016-01-13 14:01

Dear @flu, could you consider including man pages, zsh and fish completion scripts into the package?

diff --git a/PKGBUILD b/PKGBUILD
index 2477aab..1cbaf9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ arch=('any')
license=('custom')

depends=('python' 'python-setuptools')
-makedepends=('git')
+makedepends=('git' 'pandoc')
optdepends=('ffmpeg: for video post-processing')

provides=("$_name")
@@ -34,16 +34,17 @@ sha512sums=(SKIP)
prepare() {
cd $_name-$_branch
sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
- sed -i ':etc/fish/completions:d' setup.py
+ sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py
}

package() {
cd $_name-$_branch

- python devscripts/bash-completion.py
+ LC_ALL=en_US.UTF-8 make bash-completion zsh-completion fish-completion README.txt youtube-dl.1
python setup.py install --root="$pkgdir" --optimize=1

mv "$pkgdir"/usr/share/bash-completion/completions/youtube-dl.bash-completion \
"$pkgdir"/usr/share/bash-completion/completions/youtube-dl
+ install -D -m644 youtube-dl.zsh "$pkgdir"/usr/share/zsh/site-functions/_youtube-dl
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

flu commented on 2016-01-07 18:20

Ok, did it. Sounded good enough except that now .SRCINFO pkgver is wrong but this shouldn't be a big deal. Another option may be to explicitely remove master.zip. Ideas are welcome!

izilly commented on 2016-01-07 15:45

The source currently downloads to "$SRCDEST/master.zip", which is causing some problems for me. Unless I manually delete the old source files before each new build, the newly created packages are just repackaged versions of the old, outdated source. Nothing is actually getting updated.

Here's a modified PKGBUILD that puts $pkgver in the source filename:
https://gist.github.com/izilly/8612d77b8cec79c4cbce

flu commented on 2015-12-05 09:18

Made the switch. I am open to more suggestions of course, please point me anything I may have forgotten. Thank you everyone.

Smola commented on 2015-12-04 17:54

flu, we could use `git ls-remote` to get commit hash:

$ git ls-remote -h git://github.com/rg3/youtube-dl.git master | cut -c1-7
bee4c55

Or this awk script, which mimic `git describe` behavior: http://stackoverflow.com/a/13619380

FredBezies commented on 2015-12-03 14:09

@flu : orphaning this pkgbuild. Feel free to adopt it.