Unverified Commit c41716b0 authored by prspkt's avatar prspkt

testing/py-nbxmpp: drop python2

parent a5925a43
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py-nbxmpp
_pkgname="${pkgname#py-}"
pkgname=py3-nbxmpp
_pkgname=nbxmpp
pkgver=0.6.10
pkgrel=0
pkgrel=1
pkgdesc="A non-blocking XMPP implementation for python"
url="https://dev.gajim.org/gajim/python-nbxmpp/"
arch="noarch"
license="GPL-3.0-only"
makedepends="py-setuptools python2-dev python3-dev"
subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
license="GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir"/$_pkgname-$pkgver
replaces=py-nbxmpp # Backwards compatibility
provides=py-nbxmpp=$pkgver-r$pkgrel # Backwards compatibility
build() {
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
_py python2
}
_py3() {
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="df586498ea66da4b6720753b25bd0222ee3360684e844d0d5bc2f364c2566243cc358976fe34b050e3358c3e584f880d8ac1c34e84eca34efaa18ab0c2f37eaf nbxmpp-0.6.10.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment