aports/community/msgpack-c/APKBUILD

34 lines
940 B
Text

# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=msgpack-c
pkgver=6.1.0
pkgrel=1
pkgdesc="An efficient object serialization library for C"
url="https://msgpack.org"
arch="all"
license="BSL-1.0"
makedepends="cmake samurai"
checkdepends="gtest-dev zlib-dev"
subpackages="$pkgname-dev"
source="https://github.com/msgpack/msgpack-c/releases/download/c-$pkgver/msgpack-c-$pkgver.tar.gz"
build() {
cmake -G Ninja -B build . \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DMSGPACK_BUILD_TESTS="$(want_check && echo ON || echo OFF)"
cmake --build build
}
check() {
cmake --build build --target test
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
436a7db1c31fe2fab6172f557f4f88cc9c8d907422e53531340c078480ba76f72171ea0f6ead36b48ea86b4a72a95022388f1f5a3048ee3aa0c5bd6c5359105c msgpack-c-6.1.0.tar.gz
"