PKGBUILDs/community/youtube-dl/PKGBUILD

25 lines
790 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 2151 2009-09-09 18:46:20Z rvanharen $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
pkgname=youtube-dl
pkgver=2009.09.08
pkgrel=1
pkgdesc="A small command-line program to download videos from YouTube.com"
arch=('any')
url="http://bitbucket.org/rg3/youtube-dl/"
license=('MIT')
depends=('python')
source=(http://bitbucket.org/rg3/youtube-dl/raw/${pkgver}/youtube-dl)
md5sums=('20cea81ea926e62f1cfc1a135c40ea07')
build() {
install -Dm755 $srcdir/youtube-dl $pkgdir/usr/bin/youtube-dl
# install MIT license
install -d ${pkgdir}/usr/share/licenses/youtube-dl
awk /Copy/,/import/ youtube-dl | grep -v import \
| sed -re 's/#?//' > ${pkgdir}/usr/share/licenses/youtube-dl/COPYING
}