#!/bin/bash hvbuild() { cd ${BUILD_DIR} make # Removes references to the build directory and replaces them with saner # system-wide locations: sed -i \ -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -e "/SEARCH/s/=.*/=''/" \ tclConfig.sh make install } hvbuild_post() { make install-private-headers # Special case for TCL PKG_VER_BASE=$(echo ${PACKAGE} | sed "s!^tcl\([0-9]*\.[0-9]*\).*!\1!g") ln -svfT tclsh${PKG_VER_BASE} /usr/bin/tclsh }