Date: Tuesday, December 27, 2016 @ 06:49:54
  Author: bpiotrowski
Revision: 202978

archrelease: copy trunk to community-staging-any

Added:
  python-irc/repos/community-staging-any/
  python-irc/repos/community-staging-any/PKGBUILD
    (from rev 202976, python-irc/trunk/PKGBUILD)

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

Copied: python-irc/repos/community-staging-any/PKGBUILD (from rev 202976, 
python-irc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2016-12-27 06:49:54 UTC (rev 202978)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Kyle Keen <[email protected]>
+# Contributor: Jelle van der Waa <[email protected]>
+# Contributor: Pierre Chapuis <[email protected]>
+# Contributor: Stefano Esposito <[email protected]>
+
+pkgbase=python-irc
+pkgname=('python-irc' 'python2-irc')
+pkgver=15.0.6
+pkgrel=2
+pkgdesc="IRC (Internet Relay Chat) protocol client library for Python"
+depends=('python-six' 'python-pytz' 'python-more-itertools' 'python-jaraco')
+makedepends=('python-setuptools' 'python2-setuptools'
+    'python2-jaraco' 'python2-more-itertools' 'python2-pytz')
+checkdepends=('python-pytest' 'python2-pytest')
+arch=('any')
+url="http://pypi.python.org/pypi/irc";
+license=('LGPL')
+source=("https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz";)
+md5sums=('c640d2879502ad087c16fd7497d226bf')
+
+build() {
+  cd "$srcdir"
+  cp -a "irc-$pkgver" "irc2-$pkgver"
+}
+
+package_python-irc() {
+  cd "$srcdir/irc-$pkgver"
+  export LC_ALL=en_US.UTF-8
+  python3 setup.py install --root="$pkgdir" --optimize=0
+}
+
+package_python2-irc() {
+  depends=('python2-six' 'python2-pytz' 'python2-more-itertools' 
'python2-jaraco')
+
+  cd "$srcdir/irc2-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=0
+}
+
+check() {
+  cd "$srcdir/irc-$pkgver"
+  export LC_ALL=en_US.UTF-8
+  python3 setup.py test 
+
+  cd "$srcdir/irc2-$pkgver"
+  python2 setup.py test 
+}

Reply via email to