33 lines
963 B
Bash
33 lines
963 B
Bash
pkgname=msgpack
|
|
_name="${pkgname}-c"
|
|
pkgver=6.0.0
|
|
pkgdesc="MessagePack is a binary-based efficient data interchange format"
|
|
homepage="https://msgpack.org/ https://github.com/msgpack/msgpack-c/"
|
|
license=("Boost-1.0")
|
|
sources=("${_name}-${pkgver}.tar.gz")
|
|
urls=("https://github.com/${pkgname}/${pkgname}-c/releases/download/c-${pkgver}/${sources[0]}")
|
|
sha512sums=("77a2a3c984e04fcda298ae34571b6826f1d4f6e53b5f7166992269421ae3153b986ed69ba0360347920047e38f6941680bc9e38563ec79f15591bf8d66cd7978")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
local cmake_args=(
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DMSGPACK_BUILD_EXAMPLES=OFF
|
|
-DMSGPACK_BUILD_TESTS=OFF
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
|
)
|
|
cmake -B build "${cmake_args[@]}"
|
|
cmake --build build
|
|
}
|
|
|
|
src_install() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
find "${pkgdir}" -name '*.a' -delete
|
|
}
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|