pkgname=check pkgver=0.15.2 pkgdesc="A unit testing framework for C" homepage="https://libcheck.github.io/check/" arch=(x86_64) license=(LGPL) sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://github.com/libcheck/check/releases/download/${pkgver}/${sources[0]}") md5sums=("50fcafcecde5a380415b12e9c574e0b2") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { ./configure --prefix=/usr --disable-static make } src_check() { make check } src_install() { make DESTDIR="${pkgdir}" docdir=/usr/share/doc/check-${pkgver} install }