[arch-commits] Commit in youtube-dl/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:42:00 UTC 2015
Date: Saturday, September 19, 2015 @ 19:41:59
Author: foutrelis
Revision: 141062
archrelease: copy trunk to community-staging-any
Added:
youtube-dl/repos/community-staging-any/
youtube-dl/repos/community-staging-any/PKGBUILD
(from rev 141061, youtube-dl/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: youtube-dl/repos/community-staging-any/PKGBUILD (from rev 141061, youtube-dl/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 17:41:59 UTC (rev 141062)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=youtube-dl
+pkgver=2015.08.28
+pkgrel=2
+pkgdesc="A small command-line program to download videos from YouTube.com and a few more sites"
+arch=('any')
+url="http://rg3.github.io/youtube-dl/"
+license=('custom')
+depends=('python' 'python-setuptools')
+optdepends=('ffmpeg: for video post-processing'
+ 'rtmpdump: for rtmp streams support'
+ 'atomicparsley: for embedding thumbnails into m4a files')
+source=(http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig)
+sha1sums=('40239ed25172035b765b8c797b3e2239e1f5cf8d'
+ 'SKIP')
+validpgpkeys=('7D33D762FD6C35130481347FDB4B54CBA4826A18')
+
+prepare() {
+ cd ${pkgname}
+ sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
+ sed -i 's|etc/fish/completions|share/fish/completions|' setup.py
+}
+
+package() {
+ cd ${pkgname}
+ 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 -Dm644 youtube-dl.zsh "${pkgdir}/usr/share/zsh/site-functions/_youtube-dl"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list