[arch-commits] Commit in cmocka/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 17:49:31 UTC 2020
Date: Tuesday, July 7, 2020 @ 17:49:31
Author: felixonmars
Revision: 659874
archrelease: copy trunk to community-staging-x86_64
Added:
cmocka/repos/community-staging-x86_64/
cmocka/repos/community-staging-x86_64/PKGBUILD
(from rev 659873, cmocka/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: cmocka/repos/community-staging-x86_64/PKGBUILD (from rev 659873, cmocka/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 17:49:31 UTC (rev 659874)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=cmocka
+pkgver=1.1.5
+pkgrel=2
+pkgdesc='Elegant unit testing framework for C with support for mock objects'
+url='https://cmocka.org/'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc')
+makedepends=('cmake')
+source=(https://cmocka.org/files/1.1/cmocka-${pkgver}.tar.xz{,.asc})
+sha512sums=('cad7f04757183d004f6eaad39036fc0e24c5e0e987f80e85bc43bc66dba22389cb02b08e25531cc28a541d0a24a86b29be134a2d6fc339128e87d66952f502bd'
+ 'SKIP')
+validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn at cryptomilk.org>
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ mkdir build
+}
+
+build() {
+ cd ${pkgname}-${pkgver}/build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DUNIT_TESTING=ON
+ make
+}
+
+check() {
+ cd ${pkgname}-${pkgver}/build
+ make test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}/build
+ make install DESTDIR="${pkgdir}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list