pkgname = "jemalloc" pkgver = "5.3.0" pkgrel = 1 build_style = "gnu_configure" configure_args = ["--with-lg-hugepage=21"] configure_gen = ["./autogen.sh"] hostmakedepends = [ "automake", "libtool", "pkgconf", ] pkgdesc = "General purpose allocator library" license = "BSD-2-Clause" url = "https://jemalloc.net" source = f"https://github.com/jemalloc/jemalloc/releases/download/{pkgver}/jemalloc-{pkgver}.tar.bz2" sha256 = "2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa" match self.profile().arch: case "aarch64" | "ppc" | "ppc64" | "ppc64le": configure_args += ["--with-lg-page=16"] case "loongarch64": configure_args += ["--with-lg-page=14"] case _: configure_args += ["--with-lg-page=12"] def post_install(self): self.install_license("COPYING") @subpackage("jemalloc-devel") def _(self): return self.default_devel()