summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56c7873483fd4a46efd92f9889d62e6a8f6fae80 (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
# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>

_name='nocasedict'
pkgname="python-${_name}"
pkgver='2.0.1'
pkgrel='2'
pkgdesc='A case-insensitive ordered dictionary for Python'
arch=('any')
url="https://github.com/pywbem/${_name}"
depends=('python-six')
makedepends=('python-build' 'python-installer' 'python-setuptools'  'python-wheel')
license=('GPLv2.1+')
source=("${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('d2052d842ea59878cc6196faaac89cad7308d3a4cc21ec7318db9946397b13a6')

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

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