# Maintainer: sleduc # Contributor: shadyabhi # Author : Christian Kreutzer pkgname=python2-tvrage _realname=python-tvrage pkgver=0.4.1 pkgrel=2 pkgdesc="Object oriented client interface for tvrage.com's XML based api feeds" url="https://pypi.python.org/pypi/python-tvrage" arch=('any') license=('GPL') depends=('python2' 'python2-beautifulsoup3') makedepends=('python2-distribute') source=("https://pypi.python.org/packages/source/p/$_realname/$_realname-$pkgver.tar.gz") md5sums=('cdfec252158c5047b626861900186dfb') package(){ #Really ugly, but what can be done. cd "$srcdir/ckreutzer-python-tvrage-c8e9781" # python2 fix for file in $(find . -name '*.py' -print); do sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file done python2 setup.py install --root="$pkgdir" --optimize=1 }