[arch-commits] Commit in python-flickrapi/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue May 9 16:48:59 UTC 2017
Date: Tuesday, May 9, 2017 @ 16:48:59
Author: felixonmars
Revision: 227478
upgpkg: python-flickrapi 2.3-1
Modified:
python-flickrapi/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-09 16:48:37 UTC (rev 227477)
+++ PKGBUILD 2017-05-09 16:48:59 UTC (rev 227478)
@@ -5,8 +5,7 @@
pkgbase=python-flickrapi
pkgname=(python-flickrapi python2-flickrapi)
-_pkgname=flickrapi
-pkgver=2.2.1
+pkgver=2.3
pkgrel=1
pkgdesc="The official Python interface to the Flickr API"
arch=('any')
@@ -15,21 +14,21 @@
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')
+source=("https://pypi.io/packages/source/f/flickrapi/flickrapi-$pkgver.tar.gz")
+sha512sums=('1d86873bbc8fccba1121f6fd51c0e22b62cff363c7a755236940581ecf4f3fa95cbff005b50e9c388505d5337d0e5ef91062c59737ec87a223d162b0e70f2fda')
prepare() {
- cp -a $_pkgname-$pkgver{,-py2}
+ cp -a flickrapi-$pkgver{,-py2}
- cd $_pkgname-$pkgver-py2
+ cd flickrapi-$pkgver-py2
find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
}
build() {
- cd $_pkgname-$pkgver
+ cd flickrapi-$pkgver
python setup.py build
- cd ../$_pkgname-$pkgver-py2
+ cd ../flickrapi-$pkgver-py2
python2 setup.py build
}
@@ -37,10 +36,10 @@
# Tests not shipped
return
- cd $_pkgname-$pkgver
+ cd flickrapi-$pkgver
python runtests
- cd ../$_pkgname-$pkgver-py2
+ cd ../flickrapi-$pkgver-py2
python2 runtests
}
@@ -47,17 +46,21 @@
package_python-flickrapi() {
depends=('python-six' 'python-requests-oauthlib' 'python-requests-toolbelt')
- cd "$srcdir/$_pkgname-$pkgver"
+ cd flickrapi-$pkgver
- python setup.py install --root=$pkgdir/ --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+
+ rm "$pkgdir"/usr/lib/python3.6/site-packages/*.md
}
package_python2-flickrapi() {
depends=('python2-six' 'python2-requests-oauthlib' 'python2-requests-toolbelt')
- cd "$srcdir/$_pkgname-$pkgver-py2"
+ cd flickrapi-$pkgver-py2
- python2 setup.py install --root=$pkgdir/ --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+
+ rm "$pkgdir"/usr/lib/python2.7/site-packages/*.md
}
More information about the arch-commits
mailing list