[arch-commits] Commit in python2-pyxmpp/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 23:50:32 UTC 2018


    Date: Friday, November 9, 2018 @ 23:50:31
  Author: foutrelis
Revision: 405400

archrelease: copy trunk to community-staging-any

Added:
  python2-pyxmpp/repos/community-staging-any/
  python2-pyxmpp/repos/community-staging-any/PKGBUILD
    (from rev 405399, python2-pyxmpp/trunk/PKGBUILD)

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

Copied: python2-pyxmpp/repos/community-staging-any/PKGBUILD (from rev 405399, python2-pyxmpp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-11-09 23:50:31 UTC (rev 405400)
@@ -0,0 +1,41 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: William Rea <sillywilly at gmail.com>
+
+pkgname=python2-pyxmpp
+pkgver=1.1.2
+pkgrel=7
+pkgdesc='Python XMPP and Jabber implementation based on libxml2'
+arch=('any')
+url='https://github.com/Jajcus/pyxmpp'
+license=('LGPL')
+depends=('python2-dnspython' 'libxml2' 'python2-m2crypto')
+makedepends=('git')
+source=("git://github.com/Jajcus/pyxmpp.git#tag=pyxmpp-$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cd pyxmpp
+
+  # Make sure Python 2 is used everywhere
+  for pyf in Makefile tests/*.py utils/*.py examples/*.py; do
+    sed 's/python/python2/g' -i "$pyf"
+  done
+  sed 's/env python/env python2/g' -i configure.py
+  sed 's/python setup/python2 setup/g' -i configure.py
+}
+
+build() {
+  cd pyxmpp
+  ./configure.py
+
+  # This is my life now
+  make || make
+}
+
+package() {
+  make -C pyxmpp DESTDIR="$pkgdir" install \
+    || make -C pyxmpp DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list