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