aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-hiredis/APKBUILD
blob: a608c12c1a869753380d7259cbef5d74a5a3f6b2 (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
36
37
# Maintainer: Eivind Uggedal <eu@eju.no>
pkgname=py3-hiredis
_pkgname=${pkgname#py3-}
pkgver=1.0.0
pkgrel=1
pkgdesc="Python extension that wraps hiredis"
url="https://github.com/redis/hiredis-py"
arch="all"
license="BSD-3-Clause"
makedepends="python3-dev py3-setuptools hiredis-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	system-hiredis.patch
	hiredis-0.14-compat.patch"

# keep these til after alpine v3.11
provides="py-$_pkgname=$pkgver-r$pkgrel"  # for backward compatibility
replaces="py-$_pkgname"  # for backward compatibility

builddir="$srcdir"/$_pkgname-$pkgver

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

check() {
	cd "$builddir"
	python3 test.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2dfe124977770431cfd77bd3c6d22fd6dcafdd69da3016d5459bf697668682e809f2c3a8b8b41e95c884a297e5f74e0163e43b05c808cb866e2317357fba11ff  hiredis-1.0.0.tar.gz
4be1599851215547b4b994a966087024cc86b495dbfdcb9807dabcffb5505509f25398c55a07b2a8fb7221cf9c5d27738a38f8c87fe2e37d991a2de3cfa38451  system-hiredis.patch
a066ceab985be6ae87f0c30b98a496e6929909ac5d94b21fac9544bc8f649b0c1f0b66760441a90dc8bc50f4d748775f3d3a042fe8a4b466b5371bfb49b16f7a  hiredis-0.14-compat.patch"