summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0abfa99..a84a8e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=hardened-malloc
_altname=hardened_malloc
-pkgver=7
+pkgver=8
pkgrel=1
pkgdesc="Hardened allocator designed for modern systems"
arch=('x86_64' 'aarch64')
@@ -17,22 +17,27 @@ depends=('gcc-libs')
makedepends=('git')
checkdepends=('python')
provides=('libhardened_malloc.so')
+options=(!makeflags)
source=("git+https://github.com/GrapheneOS/${_altname}#tag=$pkgver?signed")
b2sums=('SKIP')
validpgpkeys=('65EEFE022108E2B708CBFCF7F9E712E59AF5F22A') # Daniel Micay <danielmicay@gmail.com>
build() {
cd "${_altname}"
+
make
}
check() {
cd "${_altname}"
- make CONFIG_WERROR=false test
+
+ # tests fail if CPPFLAGS is not set
+ CPPFLAGS="" make CONFIG_WERROR=false test
}
package() {
cd "${_altname}"
+
install -Dm755 --target-directory="$pkgdir/usr/lib" libhardened_malloc.so
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}