[arch-commits] Commit in (4 files)
Filipe Laíns
ffy00 at archlinux.org
Mon Aug 20 20:06:54 UTC 2018
Date: Monday, August 20, 2018 @ 20:06:54
Author: ffy00
Revision: 372911
import from aur
Added:
python-zope.testing/
python-zope.testing/repos/
python-zope.testing/trunk/
python-zope.testing/trunk/PKGBUILD
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Added: python-zope.testing/trunk/PKGBUILD
===================================================================
--- python-zope.testing/trunk/PKGBUILD (rev 0)
+++ python-zope.testing/trunk/PKGBUILD 2018-08-20 20:06:54 UTC (rev 372911)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgbase=python-zope.testing
+_pkgname=${pkgbase#python-}
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=4.6.2
+pkgrel=1
+arch=('any')
+pkgdesc="Zope testing frameworks"
+url="https://github.com/zopefoundation/$_pkgname"
+license=('custom:ZPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('5eb5946ca22ac29138a43660a0d28282a0cd89ed9c18aab01ac0fa62107d79b4ff8d5c4b4278b8ddb5ef578e71d9f48eb6c1ded619c43917ccba0bd4a5167d1f')
+
+prepare() {
+ cp -a $_pkgname-$pkgver{,-py2}
+}
+
+build() {
+ msg2 "Building python-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver
+ python setup.py build
+
+ msg2 "Building python2-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ msg2 "Running tests on python-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver
+ python setup.py -q test -q
+
+ msg2 "Running tests on python2-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver-py2
+ python2 setup.py -q test -q
+}
+
+package_python-zope.testing() {
+ depends=('python')
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-zope.testing() {
+ depends=('python2')
+ cd $_pkgname-$pkgver-py2
+
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Property changes on: python-zope.testing/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list