Here is what I would describe as an intuitive (and therefore cool) method for calculating $\cos\left(\frac{\pi}{5}\right)$. It is logically very similar to the answer provided by mengdie1982, but I have tried to make the explanation more intuitive. First I will describe a special type of triangle, then I will derive the ratio of lengths in this triangle. I will then prove that one of the angles in this triangle is $\frac{\pi}{5}$, and finally it will be easy to calculate $\cos\left(\frac{\pi}{5}\right)$ from the previously calculated ratio of lengths. I will also explain how this special triangle can be constructed.
Consider the following triangle:

We have $\vert AB\vert = \vert BC \vert = a$ (so $\triangle ABC$ is isosceles), $\vert AC\vert = \vert CD \vert = b$ (so $\triangle ACD$ is also isosceles), $E$ is the midpoint of $AC$, and $F$ is the midpoint of $AD$.
What must be the ratio $\frac a b$ such that $\triangle BCD$ is also isosceles (IE such that $\vert BD\vert = \vert CD \vert = b$)?
Define $\angle ABE = \theta$,
$$ \Rightarrow \angle BAE = \frac \pi 2 - \theta \\ \Rightarrow \angle ACF = \theta \\ a\sin(\theta) = \frac b 2 \\ b\sin(\theta) = \vert AF \vert = \vert DF \vert \\ \vert AF \vert + \vert DF \vert + \vert BD \vert = a \\ \vert BD \vert = b \Rightarrow 2b\sin(\theta) + b = a \\ \Rightarrow \frac{b^2}{a} + b = a \\ \Rightarrow \frac{a + b}{a} = \frac a b $$
So, we have that if the isosceles triangle $\triangle ABC$ can be divided into 2 smaller isosceles triangles $\triangle ACD$ and $\triangle BCD$, then $\frac a b$ is the golden ratio!
We can solve for $\frac a b$ and then calculate $\sin(\theta)$:
$$ \left(\frac a b\right)^2 - \frac a b - 1 = 0 \\ \Rightarrow \left(\frac a b - \frac 1 2\right)^2 - \frac 5 4 = 0 \\ \Rightarrow \frac a b = \frac{1 \pm \sqrt{5}}{2} \\ \frac a b > 0 \Rightarrow \frac a b = \frac{1 + \sqrt{5}}{2} \\
\Rightarrow \sin(\theta) = \frac{b}{2a} = \frac{1}{1 + \sqrt{5}} $$
But what is the angle $\theta$? We can use the fact that $\triangle BCD$ is isosceles $\Rightarrow \angle BCD = \angle CBD = 2\theta$
$$ \angle ABE = \theta \Rightarrow \angle ACB = \frac \pi 2 - \theta \\ \angle ACB = \angle ACF + \angle DCF + \angle BCD \\ \Rightarrow \frac \pi 2 - \theta = \theta + \theta + 2\theta \\ \Rightarrow \theta = \frac{\pi}{10} \\ \Rightarrow \cos\left(\frac \pi 5\right) = \cos\left(2 \frac{\pi}{10}\right) = \cos(2\theta) = 1 - 2\sin(\theta)^2 \\ = 1 - \frac{2}{(1 + \sqrt{5})^2} = 1 - \frac{2}{6 + 2\sqrt{5}} = \frac{4 + 2\sqrt{5}}{6 + 2\sqrt{5}} \\ = \frac{(4 + 2\sqrt{5})(6 - 2\sqrt{5})}{(6 + 2\sqrt{5})(6 - 2\sqrt{5})} = \frac{4 + 4\sqrt{5}}{16} \\ = \frac{1 + \sqrt{5}}{4} $$
There you have it.
Because the sides of $\triangle ABC$ are in the golden ratio, $\triangle ABC$ is known as a golden triangle. It is straightforward to construct a golden triangle. Say you have already constructed a golden rectangle, which is upright, as shown below. Draw a circle with centre at the bottom left corner and radius equal to the width of the rectangle, and another circle with centre at the top left corner and radius equal to the height of the circle. Draw a triangle with corners at (either) intersection of these 2 circles and the centre of each circle. This is an isosceles triangle whose lengths are in the golden ratio (and with 2 long sides and one short side), so this is a golden triangle. :)
