summaryrefslogtreecommitdiff
path: root/testing/py-fedmsg/APKBUILD
blob: d7c26125937aad56e560cf4345de6502c391938b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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="LGPLv2"
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"