[arch-commits] Commit in python-flickrapi/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Jan 19 15:37:35 UTC 2017


    Date: Thursday, January 19, 2017 @ 15:37:35
  Author: felixonmars
Revision: 208045

archrelease: copy trunk to community-testing-any

Added:
  python-flickrapi/repos/community-testing-any/
  python-flickrapi/repos/community-testing-any/PKGBUILD
    (from rev 208044, python-flickrapi/trunk/PKGBUILD)

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

Copied: python-flickrapi/repos/community-testing-any/PKGBUILD (from rev 208044, python-flickrapi/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-01-19 15:37:35 UTC (rev 208045)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Francois Garillot <francois[@]garillot.net>
+# Contributor: György Balló <ballogy at freestart.hu>
+
+pkgbase=python-flickrapi
+pkgname=(python-flickrapi python2-flickrapi)
+_pkgname=flickrapi
+pkgver=2.2.1
+pkgrel=1
+pkgdesc="The official Python interface to the Flickr API"
+arch=('any')
+url="http://stuvel.eu/flickrapi"
+license=('Python')
+makedepends=('python-docutils' 'python2-docutils' 'python-setuptools' 'python2-setuptools' 'python-requests-toolbelt' 'python2-requests-toolbelt'
+             'python-requests-oauthlib' 'python2-requests-oauthlib' 'python-six' 'python2-six')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz")
+sha512sums=('53f78436ab921d9e400d1fdf105f932e0bbf4bb1b4ac69b77dbbe52b59b10c7b21b95633dfe5405122e0d95fb3631fe61f9fc8dd72fe8782837c14075a6a06da')
+
+prepare() {
+  cp -a $_pkgname-$pkgver{,-py2}
+
+  cd $_pkgname-$pkgver-py2
+  find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+}
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+
+  cd ../$_pkgname-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # Tests not shipped
+  return
+
+  cd $_pkgname-$pkgver
+  python runtests
+
+  cd ../$_pkgname-$pkgver-py2
+  python2 runtests
+}
+
+package_python-flickrapi() {
+  depends=('python-six' 'python-requests-oauthlib' 'python-requests-toolbelt')
+
+  cd "$srcdir/$_pkgname-$pkgver"
+
+  python setup.py install --root=$pkgdir/ --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-flickrapi() {
+  depends=('python2-six' 'python2-requests-oauthlib' 'python2-requests-toolbelt')
+
+  cd "$srcdir/$_pkgname-$pkgver-py2"
+
+  python2 setup.py install --root=$pkgdir/ --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}



More information about the arch-commits mailing list