void-packages/srcpkgs/mimalloc/template

37 lines
971 B
Bash

# Template file for 'mimalloc'
pkgname=mimalloc
version=2.1.2
revision=1
build_style=cmake
configure_args="$(vopt_bool secure MI_SECURE)"
short_desc="General purpose allocator with excellent performance characteristics"
maintainer="Peter Wang <novalazy@gmail.com>"
license="MIT"
homepage="https://github.com/microsoft/mimalloc"
distfiles="https://github.com/microsoft/mimalloc/archive/v${version}.tar.gz"
checksum=2b1bff6f717f9725c70bf8d79e4786da13de8a270059e4ba0bdd262ae7be46eb
build_options="secure"
build_options_default="secure"
desc_option_secure="Build mimalloc in secure mode"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_install() {
vlicense LICENSE
}
mimalloc-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/libmimalloc.so
vmove usr/lib/mimalloc-${version%.*}
vmove usr/lib/pkgconfig
}
}