From c5d551bb3c560c6e235bad6042b8c579069ab25b Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 6 Nov 2017 23:19:43 -0500 Subject: [PATCH] Add slixmpp --- src/python-aiodns/PKGBUILD | 17 +++++++++++++++++ src/python-pycares/PKGBUILD | 24 ++++++++++++++++++++++++ src/python-slixmpp/PKGBUILD | 26 ++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 src/python-aiodns/PKGBUILD create mode 100644 src/python-pycares/PKGBUILD create mode 100644 src/python-slixmpp/PKGBUILD diff --git a/src/python-aiodns/PKGBUILD b/src/python-aiodns/PKGBUILD new file mode 100644 index 0000000..00d1371 --- /dev/null +++ b/src/python-aiodns/PKGBUILD @@ -0,0 +1,17 @@ +pkgname=python-aiodns +_pkgname=aiodns +pkgver=1.1.1 +pkgrel=2 +pkgdesc="An asynchronous python DNS library using asyncio" +arch=('i686' 'x86_64') +url="https://github.com/saghul/aiodns" +license=('MIT') +depends=('python' 'python-pycares') + +source=("https://github.com/saghul/$_pkgname/archive/$_pkgname-${pkgver}.tar.gz") +sha512sums=('1da5f50b05b1e9a7e69c13f03596b4f74f5cb7500626abace91aba84770f70bbc62336bec33cdbc2bd34b0a97a5973749d08bdc60862876819d42f6356210af6') + +package() { + cd "$_pkgname-$_pkgname-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 +} diff --git a/src/python-pycares/PKGBUILD b/src/python-pycares/PKGBUILD new file mode 100644 index 0000000..ea97d8d --- /dev/null +++ b/src/python-pycares/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=python-pycares +_pkgname=pycares +pkgver=2.3.0 +pkgrel=1 +pkgdesc="A python interface for c-ares" +arch=('i686' 'x86_64') +url="https://github.com/saghul/pycares" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') + +source=("https://github.com/saghul/$_pkgname/archive/$_pkgname-${pkgver}.tar.gz") +sha512sums=('d9a910b529d3b070b1685f6d89458404f22a5aa7002b01c1772f3eff548e9764826454c41bb69bf2f5b663df39cd1fb71b599b5f1ea88e197218e02942af67c7') + +build() { + cd "$srcdir/$_pkgname-$_pkgname-$pkgver" + python setup.py build_ext --inplace + python setup.py build +} + +package() { + cd "$srcdir/$_pkgname-$_pkgname-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 +} diff --git a/src/python-slixmpp/PKGBUILD b/src/python-slixmpp/PKGBUILD new file mode 100644 index 0000000..3838805 --- /dev/null +++ b/src/python-slixmpp/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Emmanuel Gil Peyrot + +pkgname=python-slixmpp +_pkgbase=slixmpp +pkgver=1.2.4 +pkgrel=2 +pkgdesc="An XMPP library written for Python 3.4 (SleekXMPP asyncio fork)" +arch=('i686' 'x86_64' 'armv7h' 'aarch64') +url="https://dev.louiz.org/projects/slixmpp" +license=('MIT') +depends=('python' 'python-aiodns' 'libidn' 'python-pyasn1' 'python-pyasn1-modules') +makedepends=('git' 'cython') +options=(!emptydirs) + +source=("https://dev.louiz.org/attachments/download/117/$_pkgbase-$pkgver.tar.gz") +sha512sums=('e6d7fff434676cce441683f5bbd70431d84a8e8b72582c60555a2df6297b39b07249768e150bd23eefa16a2c30d449f0ebd0bd7c5d966b86c90f5da2f812bdf3') + +build() { + cd $_pkgbase-$pkgver + python setup.py build +} + +package() { + cd $_pkgbase-$pkgver + python setup.py install --skip-build --root="$pkgdir/" --optimize=1 +}