summaryrefslogtreecommitdiff
path: root/pcr/youtube-dl-current/PKGBUILD
blob: 01225e6490ec58724f2dcc7ed3547c4e6ecb198d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Maintainer (Parabola): Alon Ivtsan <alonivtsan@lavabit.com>
# Based on https://www.archlinux.org/packages/community/any/youtube-dl/ 

pkgname=youtube-dl-current
_pkgname=youtube-dl
provides=(youtube-dl)
pkgver=2014.01.22.1
pkgrel=1
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')
makedepends=('python-distribute')
source=(http://youtube-dl.org/downloads/${pkgver}/${_pkgname}-${pkgver}.tar.gz{,.sig})

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"
}
md5sums=('7bf851198b0f5049a020d10e27bf6b2f'
         'SKIP')