[arch-commits] Commit in python-irc/repos (testing-any testing-any/PKGBUILD)

Kyle Keen kkeen at nymeria.archlinux.org
Mon Aug 19 07:45:22 UTC 2013


    Date: Monday, August 19, 2013 @ 09:45:21
  Author: kkeen
Revision: 95962

archrelease: copy trunk to testing-any

Added:
  python-irc/repos/testing-any/
  python-irc/repos/testing-any/PKGBUILD
    (from rev 95961, python-irc/trunk/PKGBUILD)

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

Copied: python-irc/repos/testing-any/PKGBUILD (from rev 95961, python-irc/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2013-08-19 07:45:21 UTC (rev 95962)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Pierre Chapuis <catwell at archlinux.us>
+# Contributor: Stefano Esposito <ragnarok at email.it>
+
+pkgbase=python-irc
+pkgname=('python-irc' 'python2-irc')
+pkgver=8.4
+pkgrel=1
+pkgdesc="IRC (Internet Relay Chat) protocol client library for Python"
+makedepends=('python-setuptools' 'python2-setuptools')
+#checkdepends=('python-pytest' 'python2-pytest')  # AUR packages
+arch=('any')
+url="http://pypi.python.org/pypi/irc"
+license=('LGPL')
+source=(http://pypi.python.org/packages/source/i/irc/irc-$pkgver.zip)
+md5sums=('f8988387770cb0d3c74178f7747f1e24')
+
+build() {
+  cd "$srcdir"
+  cp -a "irc-$pkgver" "irc2-$pkgver"
+}
+
+package_python2-irc()
+{
+  depends=('python2')
+
+  cd "$srcdir/irc2-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=0
+  find "$pkgdir/" -name '*.pyc' -delete
+}
+
+package_python-irc()
+{
+  depends=('python')
+
+  cd "$srcdir/irc-$pkgver"
+  export LC_ALL=en_US.UTF-8
+  python3 setup.py install --root="$pkgdir" --optimize=0
+  find "$pkgdir/" -name '*.pyc' -delete
+  find "$pkgdir/" -type d -empty -delete
+}
+
+#check()
+#{
+#  cd "$srcdir/irc-$pkgver"
+#  export LC_ALL=en_US.UTF-8
+#  python3 setup.py test 
+#
+#  cd "$srcdir/irc2-$pkgver"
+#  python2 setup.py test 
+#}




More information about the arch-commits mailing list