wok-4.x rev 10839
pingus: clean receipt and fix compile_rules so it dont build if broken
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jun 08 23:38:19 2011 +0200 (2011-06-08) |
parents | 5b8df23bd525 |
children | ad950661374c |
files | pingus/receipt |
line diff
1.1 --- a/pingus/receipt Wed Jun 08 23:21:26 2011 +0200 1.2 +++ b/pingus/receipt Wed Jun 08 23:38:19 2011 +0200 1.3 @@ -24,35 +24,23 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 - 1.8 - # Fix scons and gcc build bug. 1.9 - #if [ ! -f patch.done ]; then 1.10 - # patch -p1 -i $stuff/pingus-0.7.2_gcc4.u && touch patch.done 1.11 - #fi 1.12 - 1.13 scons 1.14 - 1.15 - # the script install.sh uses cp --parents which is not implemented in busybox 1.16 - # install.sh $PWD/_pkg/usr 1.17 - mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/usr/share/pingus 1.18 - cp -a pingus $PWD/_pkg/usr/bin 1.19 - cp -a data $PWD/_pkg/usr/share/pingus 1.20 } 1.21 1.22 # Rules to gen a SliTaz package suitable for Tazpkg. 1.23 genpkg_rules() 1.24 { 1.25 - mkdir -p $fs/usr/share 1.26 - cp -a $_pkg/usr/bin $fs/usr 1.27 - cp -a $_pkg/usr/share/pingus $fs/usr/share 1.28 + mkdir -p $fs/usr/bin $fs/usr/share/pingus 1.29 + cp -a $src/pingus $fs/usr/bin 1.30 + cp -a $src/data $fs/usr/share/pingus 1.31 1.32 # the tarball doesn't contain any .desktop file, nor a pixmap 1.33 # let's create them 1.34 - mkdir -p $_pkg/usr/share/pixmaps 1.35 - mkdir -p $_pkg/usr/share/applications 1.36 - cp -a $_pkg/usr/share/pingus/data/images/core/editor/actions.png \ 1.37 - $_pkg/usr/share/pixmaps/pingus.png 1.38 - cat > $_pkg/usr/share/applications/pingus.desktop <<EOF 1.39 + mkdir -p $fs/usr/share/pixmaps 1.40 + mkdir -p $fs/usr/share/applications 1.41 + cp -a $src/data/images/core/editor/actions.png \ 1.42 + $fs/usr/share/pixmaps/pingus.png 1.43 + cat > $fs/usr/share/applications/pingus.desktop <<EOF 1.44 [Desktop Entry] 1.45 Name=Pingus 1.46 Exec=pingus -w 1.47 @@ -60,5 +48,4 @@ 1.48 Categories=Application;Game; 1.49 Icon=pingus 1.50 EOF 1.51 - 1.52 }