wok-6.x annotate childsplay/receipt @ rev 3340
Add: childsplay (0.90.2)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 02:15:26 2009 +0000 (2009-06-11) |
parents | |
children | 5d0039136362 |
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@3340 | 11 DEPENDS="python pygame" |
claudinei@3340 | 12 BUILD_DEPENDS="python python-dev pygame libSDL libSDL-dev libsdl-image \ |
claudinei@3340 | 13 libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \ |
claudinei@3340 | 14 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 } |