[arch-commits] Commit in python-zc.lockfile/repos (2 files)
Filipe Laíns
ffy00 at archlinux.org
Mon Aug 20 21:03:11 UTC 2018
Date: Monday, August 20, 2018 @ 21:03:10
Author: ffy00
Revision: 372914
archrelease: copy trunk to community-any
Added:
python-zc.lockfile/repos/community-any/
python-zc.lockfile/repos/community-any/PKGBUILD
(from rev 372913, python-zc.lockfile/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-zc.lockfile/repos/community-any/PKGBUILD (from rev 372913, python-zc.lockfile/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-08-20 21:03:10 UTC (rev 372914)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgbase=python-zc.lockfile
+_pkgname=${pkgbase#python-}
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=1.3.0
+pkgrel=1
+arch=('any')
+pkgdesc="Zope testing frameworks"
+url="https://github.com/zopefoundation/$_pkgname"
+license=('custom:ZPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-zope.testing' 'python2-zope.testing')
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('33385e2b9400e507c4270cd754cbbf61a4733ac11b93a7c985f75cd9148df596afeaa16c9307712e1b9b525e8523ed6aa8ad0d3575f52266848b16933d5a60be')
+
+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 test -q
+
+ msg2 "Running tests on python2-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver-py2
+ python2 setup.py test -q
+}
+
+package_python-zc.lockfile() {
+ 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-zc.lockfile() {
+ 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
+}
More information about the arch-commits
mailing list