
Untitled
By: a guest on
Dec 27th, 2010 | syntax:
None | size: 0.71 KB | hits: 79 | expires: Never
build() {
cd ${srcdir}/
msg "Connecting to the GIT server...."
if [[ -d ${srcdir}/${_gitname} ]] ; then
cd ${_gitname}
git pull origin
msg "The local files are updated..."
else
git clone ${_gitroot}
fi
msg "GIT checkout done."
msg "Starting make for: ${pkgname}"
if [[ -d ${srcdir}/${_gitname}-build ]]; then
msg "Cleaning the previous build directory..."
rm -rf ${srcdir}/${_gitname}-build
fi
git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
sed -i 's/^add_subdirectory(\ doc\ )/#add_subdirectory(\ doc\ )/' CMakeLists.txt
cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
make
}