aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-hiredis/APKBUILD
blob: f3ae61043ab88824f41ef35a86904c1ec0170a0c (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
38
39
40
41
42
43
44
# Maintainer:
pkgname=py-hiredis
_pkgname=${pkgname#py-}
pkgver=0.1.4
pkgrel=1
pkgdesc="Python extension that wraps hiredis"
url="https://github.com/redis/hiredis-py"
arch="all"
license="BSD"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools hiredis-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	system-hiredis.patch"

_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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="8e253ef6021a7b5dc95b389a01e0e233  hiredis-0.1.4.tar.gz
3cb7a0662f3627bb3943b5b0f00090d2  system-hiredis.patch"
sha256sums="eb78e5b2f9f3b5f460b1da24b2d5e6179b3f918295697f8e3a71e982619d1a11  hiredis-0.1.4.tar.gz
45de7d65538e01a521e9f4adc76ae90d3518211726d49fddf1a0c7ff8fd2c853  system-hiredis.patch"
sha512sums="8767c836a845b5bd8a07dec33d0e27522d8c0b888bcd912eebf701a3826a59bf7b24cee26bfac33a19079e94f62ef1b823ab4ace505e5a146a33d676d7168693  hiredis-0.1.4.tar.gz
4b39b75777f1955d17312841aaf602a9d97c6618f8dd81bbc3cc40ab2a5b91ecb7830e633dcbb029c47cc89f3a0e871189fd30edf7dfe3dec482d82898768e01  system-hiredis.patch"