[arch-commits] Commit in youtube-dl/repos (2 files)

Lukas Jirkovsky stativ at nymeria.archlinux.org
Mon Mar 17 11:59:54 UTC 2014


    Date: Monday, March 17, 2014 @ 12:59:54
  Author: stativ
Revision: 107459

archrelease: copy trunk to community-staging-any

Added:
  youtube-dl/repos/community-staging-any/
  youtube-dl/repos/community-staging-any/PKGBUILD
    (from rev 107458, youtube-dl/trunk/PKGBUILD)

----------+
 PKGBUILD |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Copied: youtube-dl/repos/community-staging-any/PKGBUILD (from rev 107458, youtube-dl/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2014-03-17 11:59:54 UTC (rev 107459)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=youtube-dl
+pkgver=2014.03.12
+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')
+source=(http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig)
+sha1sums=('70fae9832108e4054a88ac4a511d5f64136263a2'
+          'SKIP')
+
+prepare() {
+  cd ${pkgname}
+  sed -i 's|etc/bash_completion.d|share/bash-completion/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 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}




More information about the arch-commits mailing list