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

Felix Yan fyan at archlinux.org
Sat Sep 19 12:48:52 UTC 2015


    Date: Saturday, September 19, 2015 @ 14:48:52
  Author: fyan
Revision: 140781

archrelease: copy trunk to community-staging-any

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

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

Copied: python-betamax/repos/community-staging-any/PKGBUILD (from rev 140780, python-betamax/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 12:48:52 UTC (rev 140781)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-betamax
+pkgname=('python-betamax' 'python2-betamax')
+pkgver=0.5.0
+pkgrel=2
+pkgdesc="A VCR imitation for python-requests"
+arch=('any')
+license=('GPL')
+url='https://github.com/sigmavirus24/betamax'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-mock')
+source=("git+https://github.com/sigmavirus24/betamax.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a betamax{,-py2}
+}
+
+check() {
+  cd "$srcdir/betamax"
+  python setup.py ptr
+
+  cd "$srcdir/betamax-py2"
+  python2 setup.py ptr
+}
+
+package_python-betamax() {
+  depends=('python-requests')
+
+  cd "${srcdir}/betamax"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-betamax() {
+  depends=('python2-requests')
+
+  cd "${srcdir}/betamax-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list