summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc80213b3c0373636a7f05a4171993ecc95d6262 (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
# Maintainer: Florian Schweikert <kelvan@ist-total.org>
# Maintainer: asm0dey <pavel.finkelshtein@gmail.com>
pkgname=pict-git
_pkgname=pict
pkgver=61.096352f
pkgrel=1
pkgdesc='Tool for pairwise automation: Pairwise Independent Combinatorial Testing'
arch=('x86_64' 'i686')
url='https://github.com/Microsoft/pict'
license=('MIT')
depends=()
makedepends=('gcc' 'make')
source=("git+https://github.com/Microsoft/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "$srcdir/$_pkgname"
  make
}

package(){
  cd "$srcdir/$_pkgname"
  mkdir -p "$pkgdir/usr/bin/"
  install -m755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}