Commit c14b1ef3 authored by Jeff Huang's avatar Jeff Huang 🤔

cmocka: import cmocka to build ldb

parent d57a8a16
# 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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment