aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-fedmsg/APKBUILD
blob: 284ab7dcba06a279a9d956467c338290d9a023f5 (plain) (blame)
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
36
37
38
39
40
41
42
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-fedmsg
_pkgname=fedmsg
pkgver=0.16.2
pkgrel=0
pkgdesc="Utilities used around Fedora Infrastructure to send and receive messages"
url="https://fedmsg.readthedocs.org/"
arch="noarch"
license="LGPLv2"
depends="python"
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
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

md5sums="43fc8257724252b38b34608b0c9a2218  fedmsg-0.16.2.tar.gz"
sha256sums="e5b20647b65b48af544bbc0fe338e00a16de572c191a0019c8c511daf200c596  fedmsg-0.16.2.tar.gz"
sha512sums="88a7350165088ad105a697dc28d685e453d277a06615e61cc9733832cfb678b6f943fa0439b52a1107b23258751c88a39e7332dcc285eb5ae930ce3d582c8eb6  fedmsg-0.16.2.tar.gz"