31 lines
817 B
Bash
31 lines
817 B
Bash
|
# Template file for 'python-hiredis'
|
||
|
pkgname=python-hiredis
|
||
|
version=0.2.0
|
||
|
revision=1
|
||
|
wrksrc="hiredis-${version}"
|
||
|
build_style=python-module
|
||
|
python_versions="2.7 3.4"
|
||
|
hostmakedepends="python-devel python3.4-devel"
|
||
|
makedepends="python-devel python3.4-devel hiredis-devel"
|
||
|
pycompile_module="hiredis"
|
||
|
short_desc="Python2 wrapper for hiredis"
|
||
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||
|
license="BSD"
|
||
|
homepage="https://github.com/redis/hiredis-py"
|
||
|
distfiles="${PYPI_SITE}/h/hiredis/hiredis-${version}.tar.gz"
|
||
|
checksum=ca958e13128e49674aa4a96f02746f5de5973f39b57297b84d59fd44d314d5b5
|
||
|
|
||
|
post_install() {
|
||
|
vlicense COPYING
|
||
|
}
|
||
|
|
||
|
python3.4-hiredis_package() {
|
||
|
pycompile_version="3.4"
|
||
|
pycompile_module="hiredis"
|
||
|
short_desc="${short_desc/Python2/Python3.4}"
|
||
|
pkg_install() {
|
||
|
vmove usr/lib/python3.4
|
||
|
vlicense COPYING
|
||
|
}
|
||
|
}
|