blob: aa4802df351e4ffc012877020ae9ecb5bd8b135c (
plain)
1 # Description: Fast paced first person shooter game.
2 # URL: http://www.warsow.net/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: Mark Rosenstand, mark at borkware dot net
5 # Depends on: libjpeg libsdl libvorbis mesa3d
6
7 name=warsow
8 version=0.42
9 release=1
10 source=(http://www.speltips.org/~web1_mans/files/warsow_${version}_unified.zip
11 http://www.speltips.org/~web1_mans/files/warsow_${version}_sdk.zip \
12 warsow.sh)
13
14 build() {
15 cd warsow_${version}_src
16
17 sed -i source/qcommon/files.c \
18 -e '/fs_basepath = Cvar_Get/s|"\."|"/usr/lib/warsow"|' \
19 -e '/fs_usehomedir = Cvar_Get/s|"0"|"1"|'
20
21 sed -i source/Makefile \
22 -e 's|-I$(X11BASE)/include|-I$(X11BASE)/include/X11|g' \
23 -e '/^all:/s| client openal qf ded cgame game ui irc tv_server| client openal qf cgame game ui irc |'
24
25 make -C source clean
26
27 make -C source \
28 BUILD_SERVER=NO \
29 BUILD_SND_OPENAL=NO \
30 BUILD_TV_SERVER=NO \
31 CLIENT_EXE=warsow \
32 LOCALBASE=/usr \
33 X11BASE=/usr
34
35 install -d $PKG/usr/lib/warsow/libs $PKG/usr/bin/
36 install -m 0755 $SRC/warsow.sh $PKG/usr/bin/warsow
37 install -m 0755 ../warsow_${version}_unified/warsow.i386 $PKG/usr/lib/warsow/
38 mv source/release/basewsw/*.so $PKG/usr/lib/warsow/libs/
39 cp -r source/release/* $PKG/usr/lib/warsow/
40 cp -r ../warsow_${version}_unified/basewsw/*.pk3 $PKG/usr/lib/warsow/basewsw/
41 rm $PKG/usr/lib/warsow/warsow
42
43 cd libsrcs/curl-*/
44 chmod +x configure
45 ./configure --enable-ipv6 --disable-static
46 make -C lib
47 install -s -m 0755 lib/.libs/libcurl.so.3.0.0 $PKG/usr/lib/warsow/libs/libcurl.so.3
48 }
|