Date: Tuesday, August 13, 2013 @ 08:17:02 Author: fyan Revision: 95517
archrelease: copy trunk to community-any Added: python2-flickrapi/repos/community-any/ python2-flickrapi/repos/community-any/PKGBUILD (from rev 95516, python2-flickrapi/trunk/PKGBUILD) ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Copied: python2-flickrapi/repos/community-any/PKGBUILD (from rev 95516, python2-flickrapi/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2013-08-13 06:17:02 UTC (rev 95517) @@ -0,0 +1,33 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@gmail.com> +# Contributor: Francois Garillot <francois[@]garillot.net> +# Contributor: György Balló <ball...@freestart.hu> + +pkgname=python2-flickrapi +_pkgname=flickrapi +pkgver=1.4.2 +pkgrel=2 +pkgdesc="The official Python interface to the Flickr API" +arch=('any') +url="http://stuvel.eu/flickrapi" +license=('Python') +depends=('python2') +makedepends=('python2-docutils' 'python2-distribute') +source=("http://pypi.python.org/packages/source/f/$_pkgname/$_pkgname-$pkgver.zip") +md5sums=('90dca08a45968b18da0894887f3e59b3') + +build() { + cd "$srcdir/$_pkgname-$pkgver" + find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' + + python2 setup.py build +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + python2 setup.py install --root=$pkgdir/ --optimize=1 + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + rm -r "$pkgdir"/usr/{README,LICENSE,UPGRADING} +}