summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05cbcebeb9417c6398d12908bcd74887fa6f65a7 (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
# Maintainer: Anton Karmanov <a.karmanov@inventati.org>

pkgname=python-idzip
pkgver='0.3.9'
pkgdesc='Improved Dictzip: seekable, gzip compatible compression format'
pkgrel=1
arch=(any)
url="https://github.com/bauman/${pkgname}"
license=('MIT')
depends=('python' 'python-importlib-metadata')
optdepends=()
makedepends=('python-setuptools' 'python-build' 'python-wheel')
source=("${pkgname}::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('aefe24d8dee8e95f642a18043f266d434ab2adca5edc4642b5641e2667cccd75')
_tardir="${pkgname}-${pkgver}"

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

package() {
  cd "${srcdir}/${_tardir}"
  # python -m installer fails with FileExistsError
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dvm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}