An alleged gun runner accused of trying to import banned weapons, including one similar to the rifle used in the Donald Trump assassination attempt, has appeared in court.