hook_add premake 1 "sed -i -e 's,/X11R6,/X11,' Makefile" if [[ $libdir = *lib64 ]]; then hook_add premake 1 "sed -i -e 's,/lib,/lib64,' Makefile" fi