updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / maxr / PKGBUILD
blobd213ca5804ebc2dbea8cbfb02b001d7d8bd69c12
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>
5 pkgname=maxr
6 pkgver=0.2.6
7 pkgrel=1
8 pkgdesc='A free remake of the strategy game "M.A.X." by Interplay'
9 arch=('i686' 'x86_64')
10 url="http://www.maxr.org"
11 license=('GPL' 'FDL')
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')
17 build() {
18   cd $pkgname-$pkgver
20   ./configure --prefix=/usr
21   make || return 1
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/