summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd20493ba4b79e3314e5e59b8f4a841709e20aae (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
# Maintainer: stefanwimmer128 <info at stefanwimmer128 dot eu>

_pkgname=shellspec
pkgname=$_pkgname-git
pkgver=0.28.1.r120.gf800240
pkgrel=2
pkgdesc='BDD style unit testing framework for POSIX compliant shell script'
arch=('any')
url='https://shellspec.info'
license=('MIT')
depends=('sh')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/shellspec/shellspec.git")
sha256sums=('SKIP')

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

check() {
    cd "$_pkgname"

    make test
}

package() {
    cd "$_pkgname"

    PREFIX="$pkgdir/usr" make install
    install -m 644 -Dt "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}