updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python2-mrjob / PKGBUILD
blobdc9354b66d33c8eff35f13861b6b10ce5102297f
1 pkgname=python2-mrjob
2 pkgver=0.3.0
3 pkgrel=1
4 _githubtag=77a74b1
5 pkgdesc="MapReduce framework for writing and running Hadoop Streaming jobs"
6 url="https://github.com/Yelp/mrjob/"
7 arch=('any')
8 depends=('python2' 'python-boto' 'python-simplejson' 'python-yaml')
9 license=('apache')
10 source=("https://github.com/Yelp/mrjob/tarball/v$pkgver")
11 md5sums=('f3330bf8292845d11cdd2c15c21b201a')
13 build() {
14   true
17 package() {
18   cd "$srcdir/Yelp-mrjob-$_githubtag"
20   python2 setup.py install --prefix=/usr --root="$pkgdir"
21   find "$pkgdir" -name '*.py' -print0 |xargs -0 \
22     sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
23     -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'