mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
26 lines
833 B
Bash
26 lines
833 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=youtube-dl
|
|
pkgver=2011.12.08
|
|
pkgrel=1
|
|
pkgdesc='A small command-line program to download videos from YouTube.com'
|
|
arch=('any')
|
|
url='http://rg3.github.com/youtube-dl/'
|
|
license=('custom')
|
|
depends=('python2')
|
|
source=("https://github.com/rg3/${pkgname}/raw/${pkgver}/${pkgname}")
|
|
md5sums=('82974b5db0a2dcc7cffa77b3d3b52ffe')
|
|
|
|
package() {
|
|
cd "${srcdir}"
|
|
|
|
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' youtube-dl
|
|
install -D -m755 youtube-dl "${pkgdir}/usr/bin/youtube-dl"
|
|
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
grep license youtube-dl > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|