summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 319d8f6b37af64efa581c5f1899eabbfd7026ce9 (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
# Maintainer: Aseem Athale <athaleaseem@gmail.com>

_pkgname=shelved_cache
pkgname=python-shelved-cache
pkgver=0.4.0
pkgrel=2
pkgdesc="A persistent cache implementation for Python cachetools."
arch=('any')
url="https://github.com/mariushelf/shelved_cache"
license=('MIT')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-poetry')
depends=('python' 'python-cachetools')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/${pkgver}.tar.gz)
sha256sums=('91871a6df12eead600b8c7cd08d0126ac0543dc4ffd78bf7abeead504f20282d')

build() {
    cd "$_pkgname-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}