1 #Contributor: Wesley <rudirennsau_at_hotmail_dot_com>
6 pkgdesc="Development version of 'Ufo: Alien Invasion'. Includes Gamedata."
7 url="http://ufoai.sourceforge.net"
10 depends=('libgl' 'curl' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'libtheora' 'xvidcore')
12 conflicts=('ufoai' 'ufoai-data' 'ufoai-svn')
13 source=(ufo.sh ufoded.sh ufoai.png ufoai.desktop)
15 md5sums=('855b91e47893f297b35b6e9f47145be0'
16 '81f3c45d1c3269473d2fe85730fd7e53'
17 'ae3be6e45fdd8ff584fcfc55d6a40a72'
18 'f212811fecfa6eacff73b09e12df73a3')
20 _gitroot=git://ufoai.git.sourceforge.net/gitroot/ufoai/ufoai
26 msg "Connecting to GIT server...."
28 if [ -d $_gitname ] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
32 git clone $_gitroot $_gitname
35 msg "GIT checkout done or server timeout"
36 msg "Starting make..."
40 ./configure --prefix=/usr || return 1
44 make models || return 1 #not necessary, but it will speed things up during runtime i guess
52 mkdir -p $pkgdir/usr/share/ufoai/base/
53 cp base/*.pk3 base/*.cfg base/*.txt base/*.so $pkgdir/usr/share/ufoai/base/
56 mkdir -p $pkgdir/usr/share/ufoai/
57 cp ufo ufoded ufo2map ufomodel $pkgdir/usr/share/ufoai/
60 mkdir -p $pkgdir/usr/share/locale/
61 cp -r base/i18n/* $pkgdir/usr/share/locale/
64 mkdir -p $pkgdir/usr/share/licenses/$pkgname
65 cp COPYING LICENSES $pkgdir/usr/share/licenses/$pkgname/
67 install -D -m644 $srcdir/ufoai.desktop $pkgdir/usr/share/applications/ufoai.desktop
68 install -D -m644 $srcdir/ufoai.png $pkgdir/usr/share/pixmaps/ufoai.png
69 install -D -m755 $srcdir/ufo.sh $pkgdir/usr/bin/ufo
70 install -D -m755 $srcdir/ufoded.sh $pkgdir/usr/bin/ufoded