mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 23:14:37 +08:00
44 lines
1.0 KiB
Bash
44 lines
1.0 KiB
Bash
|
# Contributions from Arch:
|
||
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||
|
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
|
||
|
|
||
|
pkgname=cmocka
|
||
|
pkgver=1.1.1
|
||
|
pkgrel=1
|
||
|
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' 'doxygen')
|
||
|
source=(https://cmocka.org/files/1.1/cmocka-${pkgver}.tar.{xz,asc})
|
||
|
sha512sums=('801c4a3e1bb9047241b1cb5a90c1cbdee1b0aff5e3d0a84ec8b2dbaee79274618c24fbe5e9fedbf0b3ee18c6c98b55d93e135d037ac33ab872edc7665af41577'
|
||
|
'SKIP')
|
||
|
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
|
||
|
|
||
|
prepare() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
mkdir build
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd ${pkgname}-${pkgver}/build
|
||
|
cmake .. \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-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:
|