#!/bin/bash

./configure --prefix=/usr
make
make -j1 install

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