diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..78515f927150 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: getzze <getzze at gmail dot com> + +pkgname=('python-django-cacheops' 'python2-django-cacheops') +pkgver=4.0.6 +pkgrel=1 +pkgdesc="A slick ORM cache with automatic granular event-driven invalidation" +arch=(any) +url="https://github.com/Suor/django-cacheops" +license=('custom') +options=(!emptydirs) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('799ce297d187f6a10523cfbc90434a5794fe2fa9a455b49f2f5b560f65e97626') +makedepends=('python-setuptools' 'python2-setuptools') + +package_python-django-cacheops() { + depends=('python-django' 'python-redis') + cd "$srcdir/django-cacheops-$pkgver" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-django-cacheops() { + depends=('python2-django' 'python2-redis') + cd "$srcdir/django-cacheops-$pkgver" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} |