updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python2-flickrapi / PKGBUILD
blobc4e93ffc8f999345b421be87749a234ed5792eed
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=python2-flickrapi
3 _pkgname=flickrapi
4 pkgver=1.4.2
5 pkgrel=1
6 pkgdesc="The official Python interface to the Flickr API"
7 arch=('any')
8 url="http://stuvel.eu/flickrapi"
9 license=('Python')
10 depends=('python2')
11 makedepends=('docutils')
12 source=(http://pypi.python.org/packages/source/f/$_pkgname/$_pkgname-$pkgver.zip)
13 md5sums=('90dca08a45968b18da0894887f3e59b3')
15 build() {
16   cd "$srcdir/$_pkgname-$pkgver"
17   find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
19   python2 setup.py build
22 package() {
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}