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