summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ac19bdb13cd5a81a4de516ff90a865f592a6c32 (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
# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com>
# Contributor: Tong Chunli<t.cunly at 163 dot com>
pkgname=python-colcon-test-result
_name=${pkgname:7}
pkgver=0.3.8
pkgrel=1
pkgdesc="An extension for colcon-core to provide information about the test results."
arch=(any)
url="https://pypi.org/project/colcon-test-result"
license=('Apache')
depends=('python-colcon-core')
makedepends=('python-setuptools')
source=(
    https://github.com/colcon/colcon-test-result/archive/refs/tags/${pkgver}.tar.gz
    upstream.path::https://github.com/colcon/colcon-test-result/compare/0.3.8...master.patch)
sha256sums=('b10643fd8de667e320843558aafbf7dd4f756b6addbbe7e03e08f5de6e375d06'
            '35986bb5ddcf824b113792504c273cceb25bc4c385e80d63fd810349775b531c')

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

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