diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-16 22:28:01 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-16 22:28:01 -0600 |
commit | 3da845a08076afdd5805399268567ff5e623e477 (patch) | |
tree | 1d340dc6dfdfa4f5e5877337afbf76b308ad3729 /pcr/youtube-dl-current/PKGBUILD | |
parent | 93a4a22a36809aa0371b414e360ecdf1f6a79c48 (diff) | |
parent | 11a1ca3ecd47510d457e103c17398b327555866e (diff) | |
download | abslibre-3da845a08076afdd5805399268567ff5e623e477.tar.gz abslibre-3da845a08076afdd5805399268567ff5e623e477.tar.bz2 abslibre-3da845a08076afdd5805399268567ff5e623e477.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/youtube-dl-current/PKGBUILD')
-rw-r--r-- | pcr/youtube-dl-current/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/youtube-dl-current/PKGBUILD b/pcr/youtube-dl-current/PKGBUILD new file mode 100644 index 000000000..bb79e9cc4 --- /dev/null +++ b/pcr/youtube-dl-current/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer (Arch): 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=2013.07.12 +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') +makedepends=('python-distribute') +source=(http://youtube-dl.org/downloads/${pkgver}/${_pkgname}-${pkgver}.tar.gz{,.sig}) +md5sums=('5549a8be5054eaf02470da8955b838a0' + '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" +} |