[arch-commits] Commit in (4 files)

Filipe Laíns ffy00 at archlinux.org
Mon Aug 20 21:03:00 UTC 2018


    Date: Monday, August 20, 2018 @ 21:03:00
  Author: ffy00
Revision: 372913

import from aur

Added:
  python-zc.lockfile/
  python-zc.lockfile/repos/
  python-zc.lockfile/trunk/
  python-zc.lockfile/trunk/PKGBUILD

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

Added: python-zc.lockfile/trunk/PKGBUILD
===================================================================
--- python-zc.lockfile/trunk/PKGBUILD	                        (rev 0)
+++ python-zc.lockfile/trunk/PKGBUILD	2018-08-20 21:03:00 UTC (rev 372913)
@@ -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
+}


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



More information about the arch-commits mailing list