diff options
author | James Meyer <james.meyer@operamail.com> | 2012-12-01 18:26:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-12-01 18:26:22 (GMT) |
commit | e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37 (patch) | |
tree | bee3fe89f2988dd244e11791755e129aa8c03b14 /abs/not_built/core/python_modules/imdbpy | |
parent | 8132c218cfc1f1acb1c6d12154e0d4ca075e77f2 (diff) | |
download | linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.zip linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.gz linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.bz2 |
Mass move of uncompiled packages to abs_not_built.
The will sit here for a bit, and then will be removed completely if no one claims them.
Diffstat (limited to 'abs/not_built/core/python_modules/imdbpy')
-rw-r--r-- | abs/not_built/core/python_modules/imdbpy/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/not_built/core/python_modules/imdbpy/PKGBUILD b/abs/not_built/core/python_modules/imdbpy/PKGBUILD new file mode 100644 index 0000000..22efa94 --- /dev/null +++ b/abs/not_built/core/python_modules/imdbpy/PKGBUILD @@ -0,0 +1,37 @@ +# $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=3 +pkgdesc="Python bindings for imdb" +url="http://imdbpy.sourceforge.net/" +arch=('i686' 'x86_64') +license=('GPL') +depends=('python2') +makedepends=('setuptools') +optdepends=('python-lxml' 'python-sqlalchemy' 'python-sqlobject') +source=(http://downloads.sourceforge.net/$pkgname/$_realname-$pkgver.tar.gz) + +build(){ + 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/" +} +md5sums=('876d4cd041fa23633e3637c22bf95622') |