mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
27 lines
863 B
Bash
27 lines
863 B
Bash
# Maintainer: shadyabhi <abhijeet.1989@gmail.com>
|
|
# Author : Christian Kreutzer
|
|
|
|
pkgname=python2-tvrage
|
|
_realname=python-tvrage
|
|
pkgver=0.4.1
|
|
pkgrel=1
|
|
pkgdesc="Object oriented client interface for tvrage.com's XML based api feeds"
|
|
url="https://pypi.python.org/pypi/python-tvrage/0.1.4"
|
|
arch=('any')
|
|
license=('GPL')
|
|
depends=('python2')
|
|
makedepends=('python2-distribute')
|
|
source=("http://pypi.python.org/packages/source/p/python-tvrage/$_realname-$pkgver.tar.gz")
|
|
md5sums=('cdfec252158c5047b626861900186dfb')
|
|
build(){
|
|
#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
|
|
}
|