blob: 71cce70ab990d2b531f14a8957d3f5e4f0050d74 (
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
|
# Maintainer: stefanwimmer128 <info@stefanwimmer128.xyz>
# Contributor: Damien Flament <damien.flament at gmx dot com>
pkgname='shellspec'
pkgver=0.28.1
pkgrel=3
pkgdesc="BDD style unit testing framework for POSIX compliant shell script"
url="https://shellspec.info"
license=('MIT')
arch=('any')
depends=('sh')
makedepends=('git')
source=("shellspec::git+https://github.com/shellspec/shellspec.git#tag=$pkgver")
sha256sums=('SKIP')
check() {
cd "shellspec" || return
# Do not fail on warning sice a bash bug outputs to stderr when not expected https://mail.gnu.org/archive/html/bug-bash/2022-10/msg00073.html
echo '--no-warning-as-failure' >> .shellspec
make test
}
package() {
cd "shellspec" || return
PREFIX="$pkgdir/usr" make install
install -m 644 -Dt "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|