#!/bin/sh -e
sed 's/^FLAGS.*=/FLAGS = -static /' programs/Makefile > _
mv -f _ programs/Makefile
make \
HAVE_LZMA=0 \
HAVE_ZLIB=0 \
HAVE_LZ4=0
DESTDIR="$1" \
PREFIX=/usr \
install