#!/bin/sh -e
patch < musl.patch
sed -i 's|/doc/es\.1|/es\.1|g' Makefile.in
./configure \
--prefix="$1/usr"\
--disable-dependency-tracking\
--with-editline
make
make install