[arch-commits] Commit in python-betamax-matchers/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:59:25 UTC 2015
Date: Saturday, September 19, 2015 @ 15:59:25
Author: fyan
Revision: 140850
archrelease: copy trunk to community-staging-any
Added:
python-betamax-matchers/repos/community-staging-any/
python-betamax-matchers/repos/community-staging-any/PKGBUILD
(from rev 140849, python-betamax-matchers/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-betamax-matchers/repos/community-staging-any/PKGBUILD (from rev 140849, python-betamax-matchers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 13:59:25 UTC (rev 140850)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-betamax-matchers
+pkgname=('python-betamax-matchers' 'python2-betamax-matchers')
+pkgver=0.2.0
+pkgrel=2
+pkgdesc="Experimental set of Matchers for Betamax that may possibly end up in the main package"
+arch=('any')
+license=('GPL')
+url='https://github.com/sigmavirus24/betamax_matchers'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-betamax' 'python2-betamax'
+ 'python-requests-toolbelt' 'python2-requests-toolbelt' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/sigmavirus24/betamax_matchers.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a betamax_matchers{,-py2}
+}
+
+check() {
+ cd "$srcdir/betamax_matchers"
+ python setup.py ptr
+
+ cd "$srcdir/betamax_matchers-py2"
+ python2 setup.py ptr
+}
+
+package_python-betamax-matchers() {
+ depends=('python-requests-toolbelt' 'python-betamax')
+
+ cd "${srcdir}/betamax_matchers"
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-betamax-matchers() {
+ depends=('python2-requests-toolbelt' 'python2-betamax')
+
+ cd "${srcdir}/betamax_matchers-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