#!/bin/bash
set -e

./configure --prefix=/usr \
            --bindir=/bin \
            --disable-static \
            --libexecdir=/usr/lib \
            --docdir=/usr/share/doc/acl-"${VERSION}"

make
make -j1 install

mv -v /usr/lib/libacl.so.* /lib
ln -sfv ../../lib/"$(readlink /usr/lib/libacl.so)" /usr/lib/libacl.so