wok-current rev 5807

eduke32: download data into SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 12 09:33:05 2010 +0200 (2010-07-12)
parents e9e172014742
children b9619a375396
files eduke32/receipt
line diff
     1.1 --- a/eduke32/receipt	Mon Jul 12 09:10:29 2010 +0200
     1.2 +++ b/eduke32/receipt	Mon Jul 12 09:33:05 2010 +0200
     1.3 @@ -17,13 +17,11 @@
     1.4  {
     1.5     	mv eduke32_src_20090131 eduke32-20090313
     1.6  	cd $src
     1.7 -	[ -f $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] &&
     1.8 -	cp $SOURCES_REPOSITORY/eduke32_src_20090313.diff .
     1.9 -	if [ ! -f eduke32_src_20090313.diff ]; then
    1.10 -    		wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff
    1.11 -		cp eduke32_src_20090313.diff $SOURCES_REPOSITORY
    1.12 -	fi
    1.13 -   	patch -p1 < eduke32_src_20090313.diff
    1.14 +	[ -s $SOURCES_REPOSITORY/duke3d.grp ] ||
    1.15 +    	wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -P $SOURCES_REPOSITORY
    1.16 +	[ -s $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] ||
    1.17 +    	wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff -P $SOURCES_REPOSITORY
    1.18 +   	patch -p1 < $SOURCES_REPOSITORY/eduke32_src_20090313.diff
    1.19  	make -j 4 || return 1
    1.20      	mkdir $src/_pkg
    1.21      	cp eduke32 mapster32 $src/_pkg
    1.22 @@ -42,7 +40,7 @@
    1.23  	cp -a $src/eduke32 $src/mapster32 $fs/usr/bin
    1.24  	
    1.25  	echo "Downloading game data"
    1.26 -    	wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -O $fs/usr/share/games/eduke32/duke3d.grp
    1.27 +	cp $SOURCES_REPOSITORY/duke3d.grp $fs/usr/share/games/eduke32/duke3d.grp
    1.28  	
    1.29  	echo "Copying metadata"
    1.30  	cp stuff/eduke32.desktop $fs/usr/share/applications