1 # Contributor: Eduard Sukharev <kraplax AT mail DOT ru>
5 pkgdesc="A free and opensource turn based tactical squad simulation multiplayer game. It is heavily inspired by the famous X-COM: UFO Defense game."
7 url="http://ufo2000.sourceforge.net/"
10 depends=('allegro<4.9' dumb-old sdl hawknl expat zlib freetype2 libvorbis)
17 install=ufo2000.install
18 source=(http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver-beta-src.bz2?download ufo2000.png ufo2000.desktop makefile.patch)
20 #generated with 'makepkg -g'
21 md5sums=('e07ca7c032be0b207a7e97e06df01898'
22 'c39fa2f286591497a25e11811ddf8585'
23 '4ea21d2eb5983f2f29efa7e3c7c9eb23')
27 #patching makefile since it ignores CFLAGS and sets it from scratch
28 patch -p1 < $srcdir/makefile.patch
30 # consider deleting the export command (if you have your own CFLAGS set to
31 # something you're sure of) or modify it to fit your arch type
32 export CFLAGS="${CFLAGS} -march=i686" && make || return 1
35 install -D ufo2000.png $pkgdir/usr/share/pixmaps/ufo2000.png
36 install -D ufo2000.desktop $pkgdir/usr/share/applications/ufo2000.desktop
39 #make DESTDIR="$pkgdir/" no_dumbogg=1 DISTNAME=archlinux install || return 1
42 mkdir -p $pkgdir/usr/bin
43 mkdir -p $pkgdir/opt/$pkgname
44 rm -rf doxygen makefile $pkgname-$pkgver-beta-src.tar.bz2?download
45 mv -f * $pkgdir/opt/$pkgname
47 ln -s ../../opt/$pkgname/$pkgname
50 # As stated on the URL below, make install does not work (yet):
51 # http://www.xcomufo.com/forums/index.php?showtopic=24202800
54 # vim:set ts=2 sw=2 et: