mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 08:12:06 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
|
|
pkgname=py-redis
|
|
_pkgname=${pkgname#py-}
|
|
pkgver=2.10.3
|
|
pkgrel=0
|
|
pkgdesc="Python client for Redis key-value store"
|
|
url="https://github.com/andymccurdy/redis-py"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python2"
|
|
depends_dev=""
|
|
makedepends="python2-dev py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
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"
|
|
python2 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
md5sums="7619221ad0cbd124a5687458ea3f5289 redis-2.10.3.tar.gz"
|
|
sha256sums="a4fb37b02860f6b1617f6469487471fd086dd2d38bbce640c2055862b9c4019c redis-2.10.3.tar.gz"
|
|
sha512sums="a6dcb1160f91c444a6fd107761b2701e7d8ab2eed7b9fcc00e8f0bdcefe46c2a626611f36fe6bf520fe3cceeb509562609e6dba263e1508abe285a6eab73963c redis-2.10.3.tar.gz"
|