summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1712f5213ad9a33c7a72d4198d6eaa8c63129bed (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
# Maintainer: Radu Potop <radu@wooptoo.com>
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Razer <razer[AT]neuf[DOT]fr>

pkgbase='django-redis'
pkgname='python-django-redis'
pkgver=5.4.0
pkgrel=1
pkgdesc="Full featured redis cache backend for Django"
arch=(any)
license=("BSD")
url="https://github.com/jazzband/django-redis"
makedepends=("python-build" "python-installer")
depends=('python' 'python-redis')
source=("${url}/archive/refs/tags/${pkgver}.tar.gz")

build() {
    cd "$srcdir/$pkgbase-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$pkgbase-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

sha256sums=('118569679bc9f866211b953c7a8108ff548781965554417736bd7c40d0846392')