From 06f2ad4101495a5c3da9797de654eaeae27744d0 Mon Sep 17 00:00:00 2001 From: dkwo Date: Sun, 1 Jan 2023 15:41:11 +0100 Subject: [PATCH] new package: hardened-malloc --- srcpkgs/hardened-malloc/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/hardened-malloc/template diff --git a/srcpkgs/hardened-malloc/template b/srcpkgs/hardened-malloc/template new file mode 100644 index 000000000000..6ff8f9d2dba2 --- /dev/null +++ b/srcpkgs/hardened-malloc/template @@ -0,0 +1,32 @@ +# Template file for 'hardened-malloc' +pkgname=hardened-malloc +version=11 +revision=1 +archs="~i686*" +checkdepends="python3" +short_desc="Hardened allocator designed for modern systems" +maintainer="dkwo " +license="MIT" +homepage="https://github.com/GrapheneOS/hardened_malloc" +changelog="https://github.com/GrapheneOS/hardened_malloc/releases" +distfiles="https://github.com/GrapheneOS/hardened_malloc/archive/refs/tags/${version}.tar.gz" +checksum=14331990899b91f9323230c280d66f0d1a77c386eb5d206d4cd0d8b5683098da +nocross=yes + +do_build() { + make VARIANT=default + make VARIANT=light +} + +do_install() { + vinstall out/libhardened_malloc.so 755 usr/lib/ + vinstall out-light/libhardened_malloc-light.so 755 usr/lib/ +} + +do_check() { + make test +} + +post_install() { + vlicense LICENSE +}