[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Tue Aug 11 06:11:16 UTC 2015
Date: Tuesday, August 11, 2015 @ 08:11:16
Author: fyan
Revision: 138200
addpkg: python-praw 3.1.0-1
Added:
python-praw/
python-praw/repos/
python-praw/trunk/
python-praw/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: python-praw/trunk/PKGBUILD
===================================================================
--- python-praw/trunk/PKGBUILD (rev 0)
+++ python-praw/trunk/PKGBUILD 2015-08-11 06:11:16 UTC (rev 138200)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-praw
+pkgname=('python-praw' 'python2-praw')
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="Python Reddit API Wrapper that allows for simple access to reddit's API"z
+arch=('any')
+license=('GPL')
+url="http://praw.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator'
+ 'python-requests' 'python2-requests' 'python-six' 'python2-six'
+ 'python-update_checker' 'python2-update_checker' 'git')
+checkdepends=('python-mock' 'python2-mock' 'python-betamax-matchers' 'python2-betamax-matchers')
+source=("git+https://github.com/praw-dev/praw.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a praw{,-py2}
+}
+
+check() {
+ cd "$srcdir/praw"
+ python setup.py test
+
+ cd "$srcdir/praw-py2"
+ python2 setup.py test
+}
+
+package_python-praw() {
+ depends=('python')
+
+ cd "${srcdir}/praw"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-praw() {
+ depends=('python2')
+
+ cd "${srcdir}/praw-py2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ mv "$pkgdir/usr/bin/praw-multiprocess"{,2}
+}
Property changes on: python-praw/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list