void-packages/srcpkgs/msgpack/template

30 lines
812 B
Bash

# Template file for 'msgpack'
pkgname=msgpack
version=1.2.0
revision=1
wrksrc="msgpack-${version}"
build_style=gnu-configure
hostmakedepends="cmake"
makedepends="zlib-devel"
short_desc="An efficient binary serialization format"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Apache-2.0"
homepage="http://msgpack.org/"
distfiles="https://github.com/$pkgname/$pkgname-c/releases/download/cpp-$version/$pkgname-$version.tar.gz"
checksum=a7963b22665cecd1f72d8404b70be95a9c376084e9790833a7942c6633b33ca0
pre_configure() {
sed -i '/INSTALL/s,msgpack.pc,build/msgpack.pc,g' CMakeLists.txt
}
msgpack-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}