[arch-commits] Commit in nbxmpp/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 16:32:56 UTC 2015
Date: Saturday, September 19, 2015 @ 18:32:56
Author: foutrelis
Revision: 246658
archrelease: copy trunk to staging-any
Added:
nbxmpp/repos/staging-any/
nbxmpp/repos/staging-any/PKGBUILD
(from rev 246657, nbxmpp/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: nbxmpp/repos/staging-any/PKGBUILD (from rev 246657, nbxmpp/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2015-09-19 16:32:56 UTC (rev 246658)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=nbxmpp
+pkgname=('python-nbxmpp' 'python2-nbxmpp')
+pkgver=0.5.3
+pkgrel=2
+arch=('any')
+url="https://python-nbxmpp.gajim.org/"
+license=('GPL3')
+makedepends=('python' 'python2')
+source=($pkgbase-$pkgver.tar.gz::https://python-nbxmpp.gajim.org/downloads/8)
+sha1sums=('3077557ec37514e9d03e5340d4aa05607704ecd1')
+
+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