summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef7aa0535b78d90886b1a4cdad860e0a2bdbc3ce (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
# Maintainer: Carl Smedstad <antoniovazquezblanco@gmail.com>

pkgname=python-coverxygen-git
_name=${pkgname#"python-"}
_name=${_name%"-git"}
pkgver=1.8.0
pkgrel=1
pkgdesc="Generate doxygen's documentation coverage report"
arch=(x86_64)
url="https://github.com/psycofdj/coverxygen"
license=(GPL)
makedepends=(
  python-build
  python-setuptools
  python-wheel
)
provides=('python-coverxygen')
conflicts=('python-coverxygen')
replaces=('python-coverxygen-git')
source=("${_name}::git+$url")
sha512sums=(
  'SKIP'
)

pkgver() {
  cd "${_name}"
  git describe --tag | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

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

package() {
  cd "${_name}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}