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

Felix Yan felixonmars at archlinux.org
Sat Jul 14 21:43:13 UTC 2018


    Date: Saturday, July 14, 2018 @ 21:43:12
  Author: felixonmars
Revision: 359465

archrelease: copy trunk to community-staging-any

Added:
  python-prawcore/repos/community-staging-any/
  python-prawcore/repos/community-staging-any/PKGBUILD
    (from rev 359464, python-prawcore/trunk/PKGBUILD)

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

Copied: python-prawcore/repos/community-staging-any/PKGBUILD (from rev 359464, python-prawcore/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-14 21:43:12 UTC (rev 359465)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-prawcore
+pkgname=('python-prawcore' 'python2-prawcore')
+pkgver=0.14.0
+pkgrel=2
+pkgdesc="Low-level communication layer for PRAW 4+."
+arch=('any')
+license=('BSD')
+url="https://github.com/praw-dev/prawcore"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
+checkdepends=('python-mock' 'python2-mock' 'python-betamax-matchers' 'python2-betamax-matchers'
+              'python-betamax-serializers' 'python2-betamax-serializers' 'python-testfixtures'
+              'python2-testfixtures')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
+sha512sums=('9d9a48f81d1c44166c37d166d8042864fed1f3b05f1fcd4d7959a7e7b60669d33bd551314a0874adf3f8e2a348dbef401e4effb1456f2293feaea1c31a3331af')
+
+prepare() {
+  cp -a prawcore-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir"/prawcore-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/prawcore-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-prawcore() {
+  depends=('python-requests')
+
+  cd prawcore-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-prawcore() {
+  depends=('python2-requests')
+
+  cd prawcore-$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