Peel the pineapple by removing the top and bottom, then cutting away the skin. Slice the pineapple into thin slices and place on a baking sheet lined with baking paper. Bake at 300°F for 20 minutes. Place the slices in a muffin pan and bake again for 20 minutes at 300°F to form the flower shape. Let cool.
Mix the butter, sugar, and eggs together in a bowl. Add the salt, extra sugar, baking powder, flour, and buttermilk. Mix well.
Line a muffin pan with cupcake liners and distribute the batter evenly. Bake at 340°F for 25 minutes.
Mix the cream cheese, powdered sugar, and vanilla extract. Add the butter and mix until smooth.
Apply the icing to the cupcakes using an icing bag or a spoon. Place a slice of pineapple on top of each cupcake.