summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9293b72c32330b4304fecc801ee0b31f0a9d484 (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: Hadi Chahine <hadi dot n dot chahine at gmail dot com>
pkgname=cest-git
pkgver=r101.338b675
pkgrel=1
pkgdesc="A traditional unit testing library for C."
arch=('i686' 'x86_64')
url="https://github.com/hadichahine/cest"
license=('MIT')
depends=('glibc')
makedepends=('git' 'gcc')
source=("$pkgname::git://github.com/hadichahine/cest.git")
md5sums=('SKIP')

pkgver(){
	  cd "$pkgname/"
	  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$pkgname/"
	make
}

check() {
	cd "$pkgname/"
	make -k check
}

package() {
	cd "$pkgname/"
	mkdir "$pkgdir/usr/"
	make install INSTALL_DIR="$pkgdir/usr/"
}