summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ec0aa4e10f2421bbe31b55efcb6c025508c541f (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
35
36
37
38
39
40
41
42
43
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=check-git
pkgver=0.15.2.r52.g455005d
pkgrel=1
pkgdesc="A unit testing framework for C"
arch=('i686' 'x86_64')
url="https://libcheck.github.io/check/"
license=('LGPL')
depends=('glibc' 'gawk')
makedepends=('git')
provides=("check=$pkgver")
conflicts=('check')
options=('staticlibs')
source=("git+https://github.com/libcheck/check.git")
sha256sums=('SKIP')


pkgver() {
  cd "check"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "check"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "check"

  #make check
}

package() {
  cd "check"

  make DESTDIR="$pkgdir" install
}