[arch-commits] Commit in python2-pyxmpp/repos (community-any community-any/PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Fri Aug 12 14:13:23 UTC 2016
Date: Friday, August 12, 2016 @ 14:13:22
Author: arodseth
Revision: 186622
archrelease: copy trunk to community-any
Added:
python2-pyxmpp/repos/community-any/
python2-pyxmpp/repos/community-any/PKGBUILD
(from rev 186620, python2-pyxmpp/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python2-pyxmpp/repos/community-any/PKGBUILD (from rev 186620, python2-pyxmpp/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-08-12 14:13:22 UTC (rev 186622)
@@ -0,0 +1,41 @@
+# $Id$
+# 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=5
+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() {
+ # Horrible hacks to convince pyxmpp to use /usr/bin/python2
+ cd pyxmpp
+ 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() {
+ cd pyxmpp
+ make DESTDIR="$pkgdir" install || make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list