PKGBUILDs/aur/python2-tvrage/PKGBUILD

28 lines
877 B
Bash
Raw Normal View History

# Maintainer: shadyabhi <abhijeet.1989@gmail.com>
# Author : Christian Kreutzer
pkgname=python2-tvrage
_realname=python-tvrage
pkgver=0.3.0
pkgrel=1
pkgdesc="Object oriented client interface for tvrage.com's XML based api feeds"
url="http://pypi.python.org/pypi/python-tvrage/0.3.0"
arch=('i686' 'x86_64')
license=('GPL')
depends=('python2')
makedepends=('python2-distribute')
source=("http://pypi.python.org/packages/source/p/python-tvrage/$_realname-$pkgver.tar.gz")
md5sums=('48e589dd51ea67b4926bfe9cdcd07ea7')
build(){
#Really ugly, but what can be done.
cd "$srcdir/ckreutzer-python-tvrage-e371d46a4464"
# 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
}