# $Id: PKGBUILD 97643 2013-09-26 13:16:06Z dwallace $
# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Christopher Rosell <chrippa@tanuki.se>
pkgname=livestreamer
pkgver=1.5.2
pkgrel=2
pkgdesc='CLI program that launches streams from various streaming services in a custom video player'
arch=('any')
url='https://github.com/chrippa/livestreamer'
license=('BSD')
depends=('python-requests' 'rtmpdump' 'python-setuptools')
provides=('livestreamer')
conflicts=('livestreamer-git')
options=(!emptydirs)
source=(http://pypi.python.org/packages/source/l/$pkgname/$pkgname-$pkgver.tar.gz
        requests-v2.patch)
sha256sums=('0cd090699fcfe03ef69e5d53fd842513be47a29da9fccf4a545febe9fdb7c4b4'
            'bb9c898e194c15b0e91da195e82caeac4b4ff72ccec0ca1b97ced60b4c2c4ba8')

prepare(){
  cd $pkgname-$pkgver
  patch -Np1 -i $srcdir/requests-v2.patch
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et:


