# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=unittest-cpp
pkgver=2.0.0
pkgrel=0
pkgdesc="Lightweight unit testing framework for C++"
url=" "
arch="all"
license="MIT"
depends=""
makedepends="bash"
subpackages="$pkgname-dev"
source="https://github.com/unittest-cpp/unittest-cpp/releases/download/v$pkgver/unittest-cpp-$pkgver.tar.gz"

build() {
	bash ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="51b37055dbe2a8772a59047f900202332b75be8801af94496848503c6b652d34f5e2a62c92555d492e2265d35fc6befb5bd4209364f7a4e7c9f2f5988537fae6  unittest-cpp-2.0.0.tar.gz"