forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template
33 lines (29 loc) · 847 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Template file for 'mimalloc'
pkgname=mimalloc
version=2.0.7
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="${homepage}/archive/v${version}.tar.gz"
checksum=f23aac6c73594e417af50cb38f1efed88ef1dc14a490f0eff07c7f7b079810a4
build_options="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/mimalloc-2.0
}
}