summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: ce7439d28e11c9925b443c0b90e709a5f5cf5354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): Thibaut Sautereau (thithib) <thibaut at sautereau dot fr>

# # I maintain this because:
# AUR version uses underscore
# I use it and it is not in an official repo

pkgname=hardened-malloc
_altname=hardened_malloc
pkgver=4
pkgrel=2
pkgdesc="Hardened allocator designed for modern systems"
arch=('x86_64' 'aarch64')
url="https://github.com/GrapheneOS/hardened_malloc"
license=('MIT')
depends=('gcc-libs')
makedepends=('git')
checkdepends=('python')
provides=('libhardened_malloc.so')
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
}

package() {
  cd "${_altname}"
  install -Dm755 --target-directory="$pkgdir/usr/lib" libhardened_malloc.so
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}