[arch-commits] Commit in python-expects/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu Oct 29 09:33:47 UTC 2015
Date: Thursday, October 29, 2015 @ 10:33:47
Author: fyan
Revision: 145237
archrelease: copy trunk to community-any
Added:
python-expects/repos/community-any/
python-expects/repos/community-any/PKGBUILD
(from rev 145236, python-expects/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-expects/repos/community-any/PKGBUILD (from rev 145236, python-expects/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-10-29 09:33:47 UTC (rev 145237)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-expects
+pkgname=('python-expects' 'python2-expects')
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="Expressive and extensible TDD/BDD assertion library for Python"
+arch=('any')
+license=('Apache')
+url="https://github.com/jaimegildesagredo/expects"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/jaimegildesagredo/expects.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a expects{,-py2}
+}
+
+build() {
+ cd "$srcdir/expects"
+ python setup.py build
+
+ cd "$srcdir/expects-py2"
+ python2 setup.py build
+}
+
+package_python-expects() {
+ depends=('python')
+
+ cd expects
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-expects() {
+ depends=('python2')
+
+ cd expects-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