If a majority of the votes at the election is in favor of a library district, the board of supervisors shall by resolution, establish the library district, and shall appoint five trustees, who shall be qualified electors and residents within the limits of the district, to be known as a board of library trustees of the town or village for which they are appointed.