add hardened_malloc package template

This commit is contained in:
desolate
2026-06-23 10:07:15 +03:00
parent 4d4816c775
commit 075406dfd5
2 changed files with 57 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# Template file for 'hardened_malloc'
pkgname=hardened_malloc
version=14
revision=1
build_style=gnu-makefile
short_desc="Hardened memory allocator from GrapheneOS"
maintainer="desolate.land"
license="MIT"
homepage="https://github.com/GrapheneOS/hardened_malloc"
distfiles="https://github.com/GrapheneOS/hardened_malloc/archive/refs/tags/${version}.tar.gz"
checksum=4cd95ff3b83c433ebc6269d0778d79eb3480b7d5bc873503e1cc3768546bdbec
do_build()
{
make ${makejobs} VARIANT=default
make ${makejobs} VARIANT=light
}
do_install()
{
vinstall out/libhardened_malloc.so 755 usr/lib
vinstall out-light/libhardened_malloc-light.so 755 usr/lib
vlicense LICENSE
}