summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b06c469fcd3473fccb81aedf26be768f37daf56 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: taotieren <admin@taotieren.com>

pkgname=python-coincidence
_name=${pkgname#python-}
pkgver=0.6.6
pkgrel=1
pkgdesc='Helper functions for pytest'
arch=('any')
url='https://github.com/python-coincidence/coincidence'
license=('MIT')
depends=(
  'python'
  python-domdf-python-tools
  'python-pytest'
  'python-pytest-regressions'
  'python-toml'
  'python-typing_extensions'
)
makedepends=(
  'git'
  python-whey
  'python-build'
  'python-license-expression'
  'python-installer'
  'python-wheel'
  'python-setuptools'
)
optdepends=()
source=("${_name}::git+${url}.git#tag=v$pkgver")
sha512sums=('020fcfc06a30f3b1416c255a94faec5feacc58dbed194d3146235da74d72db78f125da433140060e992e25a02e57ea0fb0ce517b49d3282a86b3997ae9cf0295')

prepare() {
    git -C "${srcdir}/${_name}" clean -dfx
}

build() {
    cd "${srcdir}/${_name}"
    python -m whey --wheel
}

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