#!/bin/sh -e
sed 's/pthread-stubs //' configure > _
mv -f _ configure
chmod +x configure
./configure \
--prefix=/usr
make
make DESTDIR="$1" install
# Remove library documentation.
# False positive.
# shellcheck disable=2115
rm -rf "$1/usr/share"