# Template file for 'jemalloc'
pkgname=jemalloc
version=4.5.0
revision=1
build_style=gnu-configure
configure_args="je_cv_static_page_shift=12"
short_desc="General-purpose scalable concurrent malloc(3) implementation"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
homepage="http://jemalloc.net/"
license="2-clause-BSD"
distfiles="https://github.com/jemalloc/jemalloc/releases/download/${version}/jemalloc-${version}.tar.bz2"
checksum=9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780

post_install() {
	vlicense COPYING
}

jemalloc-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/bin
		vmove usr/share
		vmove usr/lib/*.a
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
	}
}
