summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf63432f8da5818e8436d6ca39563e8c47f4430f (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
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=cunit-svn
pkgver=r170
pkgrel=2
pkgdesc="A unit testing framework for C"
arch=('i686' 'x86_64')
url="https://cunit.sourceforge.net/"
license=('LGPL')
depends=('glibc')
makedepends=('subversion' 'libtool')
provides=("cunit=$pkgver")
conflicts=('cunit')
options=('staticlibs')
source=("svn+https://svn.code.sf.net/p/cunit/code/trunk")
sha256sums=('SKIP')


pkgver() {
  cd "trunk"

  _rev="$(svnversion | sed 's/[^0-9]+//')"
  printf "r%s" "$_rev"
}

build() {
  cd "trunk"

  ./bootstrap
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "trunk"

  make check
}

package() {
  cd "trunk"

  make DESTDIR="$pkgdir" install
}