diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f02b0a73de8b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python-aioredis + pkgdesc = asyncio (PEP 3156) Redis client library + pkgver = 1.0.0 + pkgrel = 0 + url = https://github.com/aio-libs/aioredis + arch = any + license = MIT + makedepends = python-setuptools + depends = python + depends = redis + source = https://pypi.io/packages/source/a/aioredis/aioredis-1.0.0.tar.gz + md5sums = a839519aac8186f0fcd279eab0c394fc + +pkgname = python-aioredis + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4d472b046044 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Razer <razer[AT]neuf[DOT]fr> + +pkgname=python-aioredis +_pypi_pkgname=aioredis +pkgver=1.0.0 +pkgrel=0 +pkgdesc="asyncio (PEP 3156) Redis client library" +arch=(any) +url="https://github.com/aio-libs/aioredis" +license=('MIT') +makedepends=('python-setuptools') +depends=('python' 'redis') +source=("https://pypi.io/packages/source/a/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz") +md5sums=('a839519aac8186f0fcd279eab0c394fc') + +build() { + cd "${srcdir}/${_pypi_pkgname}-${pkgver}" + python setup.py build || return 1 +} + +package() { + cd "${srcdir}/${_pypi_pkgname}-${pkgver}" + python setup.py install --root=${pkgdir} --optimize=1 || return 1 +} |