# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-fedmsg
_pkgname=fedmsg
pkgver=1.0.1
pkgrel=0
pkgdesc="Utilities used around Fedora Infrastructure to send and receive messages"
url="https://fedmsg.readthedocs.org/"
arch="noarch"
license="LGPL-2.0"
depends="python2"
depends_dev="py-setuptools"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build
}

check() {
	cd "$builddir"
	python2 setup.py check
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="adfd4c203104de71a8401f885dbc197a2c316c40b2cb77a247e7544ea3e8c9494a59f766d3fcceffadee70781d4f50f40dc0a6348fc7596f30701eb77ea6d39a  fedmsg-1.0.1.tar.gz"
