1 # Maintainer: György Balló <ballogy@freestart.hu>
5 pkgdesc="The official Python interface to the Flickr API"
7 url="http://stuvel.eu/flickrapi"
10 makedepends=('docutils' 'unzip')
11 source=(http://pypi.python.org/packages/source/f/$pkgname/$pkgname-$pkgver.zip)
12 md5sums=('90dca08a45968b18da0894887f3e59b3')
15 cd "$srcdir/$pkgname-$pkgver"
16 find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
18 python2 setup.py build
22 cd "$srcdir/$pkgname-$pkgver"
24 python2 setup.py install --root=$pkgdir/ --optimize=1
26 install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
27 rm -r $pkgdir/usr/{README,LICENSE,UPGRADING}