if you think about it, pac was one of the exceptionally few hip hop artists NOT to have originated his career as a character. while we always loved our ice cubes, krs-ones, and tribe called quests, they were characters, or musical personas rather, that weren't definitions of their true self. when ice cube wasn't being ice cube, he was being oshea jackson. pac on the other hand used his first name (albeit an ebonical spelling 😛) and was always 2pac. i interpret the invention of the makaveli persona to be a reflection of this...
pac got locked up and that meant a lot more than just catching a case. as he saw it, the section of society who he was acting as a voicebox for betrayed him to a degree, and subsequently all but abandoned him while he was incarcerated. his career as 2pac was mostly positive, and very much unrewarded... and look where it got him.
enter makaveli. lela and others have stated that pac was a reader, and he had read a lot of the greats throughout his life before trouble struck, but in my opinion it was the circumstances under which he read and digested the prince and the art of war that gave them venom for him to use. he was betrayed, shot, in solitary, and no one was coming to save him. pac was angry. even through a lot of the all eyez party type songs you can hear an edge of anger in his his words, or a line here and there that isn't very nice 😛 the spelling of makaveli reflects a street alias component of a new moniker that symbolizes pac's career era as a general of war. he spoke of returning back to 2pac when his makaveli mission had completed, and therefore i interpret the allusions and spelling of makaveli to be him taking ownership of the name (the spelling of it and references to the mack, the hustler who owns the street) and using it to represent his role in taking aim at the imposters in the rap game, as well as those who he had thought wronged him. pac's first use of a character persona was a pretty deep one, as opposed to putting together some random street terminology like a lot of other artists do. us even discussing it is a testament to that.