mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
26 lines
753 B
Bash
26 lines
753 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=youtube-dl
|
|
pkgver=2012.02.27
|
|
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')
|
|
categories=('network')
|
|
source=("https://github.com/rg3/${pkgname}/raw/${pkgver}/${pkgname}")
|
|
md5sums=('bd2f1db2f3edafcbf207fab805d36e23')
|
|
|
|
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"
|
|
}
|