[arch-commits] Commit in python-prawcore/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Mar 1 10:42:38 UTC 2019


    Date: Friday, March 1, 2019 @ 10:42:38
  Author: felixonmars
Revision: 437217

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   70 ++++++++++++++++++++++---------------------------------------
 1 file changed, 26 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 10:42:20 UTC (rev 437216)
+++ PKGBUILD	2019-03-01 10:42:38 UTC (rev 437217)
@@ -1,44 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-prawcore
-pkgname=('python-prawcore' 'python2-prawcore')
-pkgver=1.0.1
-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=('6efe8faa685aa92a04309c4c24963a2a540335ad0bed31b990d840732ddf726789688171f4ead4daf831e89da5c95c17861a079dfc9ae3de254d2690bcff1c8b')
-
-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
-}

Copied: python-prawcore/repos/community-any/PKGBUILD (from rev 437216, python-prawcore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-01 10:42:38 UTC (rev 437217)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-prawcore
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="Low-level communication layer for PRAW 4+."
+arch=('any')
+license=('BSD')
+url="https://github.com/praw-dev/prawcore"
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-betamax-matchers' 'python-betamax-serializers'
+              'python-testfixtures')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
+sha512sums=('6efe8faa685aa92a04309c4c24963a2a540335ad0bed31b990d840732ddf726789688171f4ead4daf831e89da5c95c17861a079dfc9ae3de254d2690bcff1c8b')
+
+check() {
+  cd prawcore-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd prawcore-$pkgver
+  python 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