Date: Thursday, April 12, 2018 @ 07:20:59
  Author: felixonmars
Revision: 315999

archrelease: copy trunk to community-testing-any

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

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

Copied: python-prawcore/repos/community-testing-any/PKGBUILD (from rev 315998, 
python-prawcore/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-04-12 07:20:59 UTC (rev 315999)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-prawcore
+pkgname=('python-prawcore' 'python2-prawcore')
+pkgver=0.14.0
+pkgrel=1
+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
+}

Reply via email to