#!/bin/sh -e

export CFLAGS="$CFLAGS -static"

./configure \
    --prefix=/usr

make
make DESTDIR="$1" install

ln -s dash "$1/usr/bin/sh"