# setup staging
local TMPSTAGING="/tmp/sorcery/libacl.$$" &&
mkdir -p "$TMPSTAGING/lib" &&

# install libs to staging
cp "$SOURCE_DIRECTORY/libacl/.libs"/libacl.so* "$TMPSTAGING/lib" &&
ldconfig && ldconfig "$TMPSTAGING/lib" &&

# install normally
make install install-dev install-lib &&

# return the libs to normal
ldconfig &&
rm -rf "/tmp/sorcery/libacl.$$"
