#!/bin/sh -e

sed -i '/#include/a #include <limits.h>' cmds/filesystem-usage.c
sed -i '/sysinfo\.h/d' common/utils.c

./configure \
    --prefix=/usr \
    --bindir=/usr/bin \
    --disable-documentation \
    --disable-backtrace \
    --disable-zstd

make
make DESTDIR="$1" install