1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
2 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
3 # Contributor: Ronan RABOUIN <darkbaboon@gmail.com>
8 pkgdesc='A free remake of the strategy game "M.A.X." by Interplay'
10 url="http://www.maxr.org"
12 depends=('gcc-libs' 'sdl_mixer' 'sdl_net')
13 source=(http://www.maxr.org/downloads/$pkgname-$pkgver.tar.gz $pkgname.desktop)
14 md5sums=('14c6545e4038b8319b132d8aa9929194' '5b4ce786caf79bbcf8fa726bb1821786')
20 ./configure --prefix=/usr
22 make DESTDIR="$pkgdir" install
24 install -Dm644 ../$pkgname.desktop \
25 "$pkgdir"/usr/share/applications/$pkgname.desktop
27 mkdir -p "$pkgdir"/usr/share/pixmaps
28 ln -sf /usr/share/maxr/maxr.png "$pkgdir"/usr/share/pixmaps/
29 mkdir -p "$pkgdir"/usr/share/icons/hicolor/128x128/apps
30 ln -sf /usr/share/maxr/maxr.png "$pkgdir"/usr/share/icons/hicolor/128x128/apps/
32 mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
33 install -m644 COPYING{,.README} "$pkgdir"/usr/share/licenses/$pkgname/