For the ship, from English brig. For the item of Maghrebi cuisine, from brik, itself from an Arabic word borrowed from Ottoman Turkish بورك (börek).
Practice speaking and memorizing "brick" and many other words and sentences in French.