summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f150937018567091cbb2455fe7f9949c70c07da0 (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: envolution
# Contributor: George Rawlinson <george@rawlinson.net.nz>
# Contributor: Bernhard Walle <bernhard@bwalle.de>
# shellcheck shell=bash disable=SC2034,SC2154

pkgname=cram
pkgver=0.7
pkgrel=4
pkgdesc="functional testing framework for command line applications"
arch=('any')
url="https://bitheap.org/cram/"
license=('GPL-2.0-or-later')
depends=('python' 'python-installer' 'python-build')
source=("${pkgname}-${pkgver}.tar.gz::https://bitheap.org/cram/${pkgname}-${pkgver}.tar.gz")
sha512sums=('9fa57e504abac8fd15bf5ff4a74405cb7acd10fd4c797adee87052a4f1c4e975bbc0f4219afd9485358b2c2939b48b3ffe538ae2abc6eea71e0ba8b458d50103')

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

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

# vim:set ts=2 sw=2 et: