The moneys received from such source shall be paid to the treasurer, and so much thereof as shall be necessary for the purpose, shall be expended by the regents in keeping the university buildings in good condition and repair, and the balance shall be appropriated for the increase of the library.