aboutsummaryrefslogtreecommitdiffstats
path: root/main/check/APKBUILD
blob: 29d92efb1f39abd1605ca1f2093f591d74d0a853 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=check
pkgver=0.9.14
pkgrel=0
pkgdesc="A unit test framework for C"
url="http://check.sourceforge.net/"
arch="all"
license="LGPL2+"
depends=""
depends_dev="pkgconfig"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/check/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="38263d115d784c17aa3b959ce94be8b8  check-0.9.14.tar.gz"
sha256sums="c272624645b1b738cf57fd5d81a3e4d9b722b99d6133ee3f3c4007d4d279840a  check-0.9.14.tar.gz"
sha512sums="fba3e54e36c2fdff465eadaa96e7a5bbafd5d7de7594dfe90e71c3a0bf7fb0f5e6d1b242ade55e49ef83c4a97fcf607dc53c7d04de9b4d764ea795a46e7c7be0  check-0.9.14.tar.gz"