build generic package