install -m 755 install/blender       ${INSTALL_ROOT}/usr/bin  &&
install -m 755 install/blenderplayer ${INSTALL_ROOT}/usr/bin  &&
install -m 644 ${SCRIPT_DIRECTORY}/blender48x48.png           \
               ${INSTALL_ROOT}/usr/share/pixmaps              &&

install -m 755 -d ${INSTALL_ROOT}/usr/share/blender           &&
install -m 755 -d ${INSTALL_ROOT}/usr/lib/blender/plugins/sequence    &&
install -m 755 -d ${INSTALL_ROOT}/usr/lib/blender/plugins/texture     &&

install -m 644 ${SOURCE_DIRECTORY}/install/linux2/plugins/sequence/*.so \
    ${INSTALL_ROOT}/usr/lib/blender/plugins/sequence      &&
install -m 644 ${SOURCE_DIRECTORY}/install/linux2/plugins/texture/*.so \
    ${INSTALL_ROOT}/usr/lib/blender/plugins/texture       &&
cp -R ${SOURCE_DIRECTORY}/install/.blender \
    ${INSTALL_ROOT}/usr/share/blender                     &&
cp -a ${SOURCE_DIRECTORY}/release/scripts/bpydata \
    ${INSTALL_ROOT}/usr/share/blender                     &&
cp -a ${SOURCE_DIRECTORY}/release/scripts \
    ${INSTALL_ROOT}/usr/share/blender                     &&
install -m 644 ${SOURCE_DIRECTORY}/release/VERSION \
    ${INSTALL_ROOT}/usr/share/blender                     &&

find ${INSTALL_ROOT}/usr/share/blender/scripts/ -name "*.py" -exec chmod -R 644 '{}' \;
