[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jun 13 15:49:15 UTC 2017


    Date: Tuesday, June 13, 2017 @ 15:49:15
  Author: felixonmars
Revision: 236612

addpkg: python-transaction 2.1.2-1

Added:
  python-transaction/
  python-transaction/repos/
  python-transaction/trunk/
  python-transaction/trunk/PKGBUILD

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

Added: python-transaction/trunk/PKGBUILD
===================================================================
--- python-transaction/trunk/PKGBUILD	                        (rev 0)
+++ python-transaction/trunk/PKGBUILD	2017-06-13 15:49:15 UTC (rev 236612)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-transaction
+pkgname=('python-transaction' 'python2-transaction')
+pkgver=2.1.2
+pkgrel=1
+pkgdesc='Transaction management for Python'
+arch=('any')
+license=('ZPL')
+url='https://github.com/zopefoundation/transaction'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+             'python2-zope-interface')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/transaction/archive/$pkgver.tar.gz")
+sha512sums=('60900d9a0072b800ae832e80de2730883822d673473962553631025efde2e655436e4cc34ba45db1fdb4a6917cab98e0c13cb1a99505a79be9b8ce9d769e0c74')
+
+prepare() {
+  cp -a transaction-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/transaction-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/transaction-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/transaction-$pkgver
+  python setup.py nosetests
+
+  cd "$srcdir"/transaction-$pkgver-py2
+  python2 setup.py nosetests
+}
+
+package_python-transaction() {
+  depends=('python-zope-interface')
+
+  cd transaction-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-transaction() {
+  depends=('python2-zope-interface')
+
+  cd transaction-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-transaction/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list