summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-19 03:36:47 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-19 03:36:47 (GMT)
commit3f15f2292eb33250c80af00d9931e6030918973c (patch)
treec8be33430e50054f9f82800e9dbf7b24d9de2d0b /abs/extra
parent465df1906cfb43d577fabe0b6be1285435482308 (diff)
downloadlinhes_pkgbuild-3f15f2292eb33250c80af00d9931e6030918973c.zip
linhes_pkgbuild-3f15f2292eb33250c80af00d9931e6030918973c.tar.gz
linhes_pkgbuild-3f15f2292eb33250c80af00d9931e6030918973c.tar.bz2
imdbpy: upgrade
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/imdbpy/PKGBUILD31
1 files changed, 20 insertions, 11 deletions
diff --git a/abs/extra/imdbpy/PKGBUILD b/abs/extra/imdbpy/PKGBUILD
index f3fe589..58e5264 100644
--- a/abs/extra/imdbpy/PKGBUILD
+++ b/abs/extra/imdbpy/PKGBUILD
@@ -1,28 +1,37 @@
-# $Id: PKGBUILD 5794 2009-11-19 01:18:33Z andrea $
-# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# $Id: PKGBUILD 27018 2010-09-16 17:37:18Z schuay $
+# Maintainer: Ray Rashif <schivmeister@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: lang2 <wenzhi.liang@gmail.com>
pkgname=imdbpy
+_realname=IMDbPY
pkgver=4.6
-pkgrel=1
+pkgrel=2
pkgdesc="Python bindings for imdb"
url="http://imdbpy.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')
-depends=('python')
+depends=('python2')
makedepends=('setuptools')
optdepends=('python-lxml' 'python-sqlalchemy' 'python-sqlobject')
-source=(http://downloads.sourceforge.net/$pkgname/IMDbPY-$pkgver.tar.gz)
+source=(http://downloads.sourceforge.net/$pkgname/$_realname-$pkgver.tar.gz)
build(){
- cd "$srcdir/IMDbPY-$pkgver"
- python setup.py install --root="$pkgdir" || return 1
+ cd "$srcdir/$_realname-$pkgver"
+
+ # 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"
# fix directories path
- mv ${pkgdir}/usr/etc ${pkgdir}
- install -d ${pkgdir}/usr/share
- mv ${pkgdir}/usr/imdb ${pkgdir}/usr/share
- mv ${pkgdir}/usr/doc ${pkgdir}/usr/share/imdb/
+ mv "$pkgdir/usr/etc" "$pkgdir"
+ install -d "$pkgdir/usr/share"
+ mv "$pkgdir/usr/imdb" "$pkgdir/usr/share"
+ mv "$pkgdir/usr/doc" "$pkgdir/usr/share/imdb/"
}
md5sums=('876d4cd041fa23633e3637c22bf95622')