jvoisin b0fdaa5e56 testing/hardened-malloc: new aport
https://github.com/GrapheneOS/hardened_malloc

Hardened allocator designed for modern systems.
2022-01-22 22:59:31 +00:00

34 lines
867 B
Plaintext

# Contributor:
# Maintainer: jvoisin <julien.voisin+alpine@dustri.org>
pkgname=hardened-malloc
pkgver=11
pkgrel=0
pkgdesc="Hardened allocator designed for modern systems."
url="https://github.com/GrapheneOS/hardened_malloc"
arch="x86_64 aarch64"
license="MIT"
checkdepends="python3"
source="$pkgname-$pkgver.tar.gz::https://github.com/GrapheneOS/hardened_malloc/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/${pkgname/-/_}-$pkgver"
build() {
make VARIANT=light
make VARIANT=default
}
check() {
make test
}
package() {
mkdir -p "$pkgdir"/usr/lib/
install -m755 out/libhardened_malloc.so "$pkgdir"/usr/lib/
install -m755 out-light/libhardened_malloc-light.so "$pkgdir"/usr/lib/
}
sha512sums="
82b1eda396cb6785534aaefe0067164d49a30b3bd9b51dc920fd02c4721f63db26f9ae79878ca71a7557d1b41494a68ff5575135673a27baa0a6613f7e363761 hardened-malloc-11.tar.gz
"