# $Id: PKGBUILD 2151 2009-09-09 18:46:20Z rvanharen $ # Maintainer: Ronald van Haren # Contributor: Alessio 'mOLOk' Bolognino 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 }