wok annotate childsplay/receipt @ rev 3399
childsplay: fix patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 12 09:58:56 2009 +0200 (2009-06-12) |
parents | 9e422122e0bd |
children | e8024c01fc47 |
rev | line source |
---|---|
claudinei@3340 | 1 # SliTaz package receipt. |
claudinei@3340 | 2 |
claudinei@3340 | 3 PACKAGE="childsplay" |
claudinei@3340 | 4 VERSION="0.90.2" |
claudinei@3340 | 5 CATEGORY="games" |
claudinei@3340 | 6 SHORT_DESC="Python educational game." |
claudinei@3340 | 7 MAINTAINER="claudinei@slitaz.org" |
claudinei@3340 | 8 TARBALL="$PACKAGE-$VERSION.tgz" |
claudinei@3340 | 9 WEB_SITE="http://www.childschool.org" |
claudinei@3340 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
claudinei@3387 | 11 DEPENDS="python python-pygame" |
claudinei@3387 | 12 BUILD_DEPENDS="python python-dev python-pygame libSDL libSDL-dev \ |
claudinei@3387 | 13 libsdl-image libsdl-image-dev libsdl-mixer libsdl-mixer-dev \ |
claudinei@3387 | 14 libsdl-ttf libsdl-ttf-dev libsmpeg libsmpeg-dev" |
claudinei@3340 | 15 |
claudinei@3340 | 16 # Rules to configure and make the package. |
claudinei@3340 | 17 compile_rules() |
claudinei@3340 | 18 { |
claudinei@3340 | 19 cd $src |
pascal@3399 | 20 for i in INSTALL.sh.patch ; do |
pascal@3399 | 21 [ -f $i.done ] && continue |
pascal@3399 | 22 patch -p0 -i ../stuff/$i |
pascal@3399 | 23 touch $i.done |
pascal@3399 | 24 done |
claudinei@3340 | 25 sh INSTALL.sh |
claudinei@3340 | 26 sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay |
claudinei@3340 | 27 } |
claudinei@3340 | 28 |
claudinei@3340 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3340 | 30 genpkg_rules() |
claudinei@3340 | 31 { |
claudinei@3340 | 32 mkdir -p $fs/usr $fs/usr/share $fs/var |
claudinei@3340 | 33 cp -a $_pkg/usr/bin $fs/usr |
claudinei@3340 | 34 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3340 | 35 cp -a $_pkg/usr/share/assetml $fs/usr/share |
claudinei@3340 | 36 cp -a $_pkg/usr/share/childsplay $fs/usr/share |
claudinei@3340 | 37 cp -a $_pkg/var/games $fs/var |
claudinei@3340 | 38 |
claudinei@3340 | 39 for lang in de es fr pt; do |
claudinei@3340 | 40 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3340 | 41 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \ |
claudinei@3340 | 42 $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3340 | 43 done |
claudinei@3340 | 44 } |
claudinei@3370 | 45 |
claudinei@3370 | 46 # Remove the score file generated and point it to /var/games |
claudinei@3370 | 47 post_install () |
claudinei@3370 | 48 { |
claudinei@3370 | 49 VARDIR="/var/games" |
claudinei@3370 | 50 DATADIR="/usr/share/childsplay/Data" |
claudinei@3370 | 51 SCOREFILE="childsplay.score" |
claudinei@3370 | 52 if [ -f $VARDIR/$SCOREFILE ] |
claudinei@3370 | 53 then |
claudinei@3370 | 54 rm $DATADIR/$SCOREFILE |
claudinei@3370 | 55 ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE |
claudinei@3370 | 56 fi |
claudinei@3370 | 57 } |