#!/bin/sh
#gai looks for x11 files inside /usr/x11r6/include, linking them there
mkdir -p /usr/X11R6/include/
ln -s /usr/include/X11/ /usr/X11R6/include/

#shared object
cp libgai.so.0.5.10 /usr/local/lib
ln -s /usr/local/lib/libgai.so.0.5.10 /usr/local/lib/libgai.so.0
ln -s /usr/local/lib/libgai.so.0 /usr/local/lib/libgai.so

#header
mkdir -p /usr/local/include/gai/
cp gai.h /usr/local/include/gai/

#pkg-config
mkdir -p /usr/local/lib/pkgconfig/
cp gai.pc /usr/local/lib/pkgconfig/

#create links for libraries
ldconfig
