diff --git a/lfs/check-0.15.2.PKGBUILD b/lfs/check-0.15.2.PKGBUILD new file mode 100644 index 0000000..e95a6b7 --- /dev/null +++ b/lfs/check-0.15.2.PKGBUILD @@ -0,0 +1,26 @@ +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 +}