wok annotate childsplay/receipt @ rev 3387
Fix: childsplay (depends and build_depends)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 23:44:37 2009 +0000 (2009-06-11) |
parents | 5d0039136362 |
children | a3f50ad7bac2 |
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 |
claudinei@3340 | 20 patch -p1 -i ../stuff/INSTALL.sh.patch |
claudinei@3340 | 21 sh INSTALL.sh |
claudinei@3340 | 22 sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay |
claudinei@3340 | 23 } |
claudinei@3340 | 24 |
claudinei@3340 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3340 | 26 genpkg_rules() |
claudinei@3340 | 27 { |
claudinei@3340 | 28 mkdir -p $fs/usr $fs/usr/share $fs/var |
claudinei@3340 | 29 cp -a $_pkg/usr/bin $fs/usr |
claudinei@3340 | 30 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3340 | 31 cp -a $_pkg/usr/share/assetml $fs/usr/share |
claudinei@3340 | 32 cp -a $_pkg/usr/share/childsplay $fs/usr/share |
claudinei@3340 | 33 cp -a $_pkg/var/games $fs/var |
claudinei@3340 | 34 |
claudinei@3340 | 35 for lang in de es fr pt; do |
claudinei@3340 | 36 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3340 | 37 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \ |
claudinei@3340 | 38 $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3340 | 39 done |
claudinei@3340 | 40 } |
claudinei@3370 | 41 |
claudinei@3370 | 42 # Remove the score file generated and point it to /var/games |
claudinei@3370 | 43 post_install () |
claudinei@3370 | 44 { |
claudinei@3370 | 45 VARDIR="/var/games" |
claudinei@3370 | 46 DATADIR="/usr/share/childsplay/Data" |
claudinei@3370 | 47 SCOREFILE="childsplay.score" |
claudinei@3370 | 48 if [ -f $VARDIR/$SCOREFILE ] |
claudinei@3370 | 49 then |
claudinei@3370 | 50 rm $DATADIR/$SCOREFILE |
claudinei@3370 | 51 ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE |
claudinei@3370 | 52 fi |
claudinei@3370 | 53 } |