[arch-commits] Commit in nbxmpp/repos/extra-any (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Jan 31 23:59:36 UTC 2017


    Date: Tuesday, January 31, 2017 @ 23:59:36
  Author: arojas
Revision: 287867

archrelease: copy trunk to extra-any

Added:
  nbxmpp/repos/extra-any/PKGBUILD
    (from rev 287866, nbxmpp/trunk/PKGBUILD)

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

Copied: nbxmpp/repos/extra-any/PKGBUILD (from rev 287866, nbxmpp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-01-31 23:59:36 UTC (rev 287867)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=nbxmpp
+pkgname=('python-nbxmpp' 'python2-nbxmpp')
+pkgver=0.5.5
+pkgrel=1
+arch=('any')
+url="https://python-nbxmpp.gajim.org/"
+license=('GPL3')
+makedepends=('python' 'python2')
+source=(https://pypi.io/packages/source/n/nbxmpp/nbxmpp-$pkgver.tar.gz)
+sha1sums=('3075f7f478e2db76bf1a0c5d1f38ecf2a5a4b9ad')
+
+prepare() {
+  cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}-python2
+  python2 setup.py build
+  cd ../${pkgbase}-${pkgver}
+  python setup.py build
+}
+
+package_python-nbxmpp() {
+  pkgdesc="A Python 3 library to use Jabber/XMPP networks in a non-blocking way"
+  depends=('python')
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}"
+}
+
+package_python2-nbxmpp() {
+  pkgdesc="A Python 2 library to use Jabber/XMPP networks in a non-blocking way"
+  depends=('python2')
+  cd ${pkgbase}-${pkgver}-python2
+  python2 setup.py install --root="${pkgdir}"
+}



More information about the arch-commits mailing list