wok-6.x view childsplay-plugins/receipt @ rev 3427

ruby,xchm,xine-ui,xrick: Remove dep on libiconv
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 13 13:13:25 2009 +0200 (2009-06-13)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="childsplay-plugins"
4 SOURCE="childsplay_plugins"
5 VERSION="0.90"
6 CATEGORY="games"
7 SHORT_DESC="Extra games for childsplay."
8 MAINTAINER="claudinei@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tgz"
10 WEB_SITE="http://www.childschool.org"
11 WGET_URL="$SF_MIRROR/childsplay/$TARBALL"
12 DEPENDS="python childsplay"
13 BUILD_DEPENDS="$DEPENDS"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -p1 -i ../stuff/install.sh.patch
20 sh install.sh
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr $fs/usr/share $fs/var/games
27 cp -a $_pkg/usr/bin $fs/usr
28 cp -a $_pkg/usr/lib $fs/usr
29 cp -a $_pkg/usr/share/assetml $fs/usr/share
30 cp -a $_pkg/usr/share/childsplay $fs/usr/share
31 cp -a $_pkg/usr/share/childsplay/Data/childsplay.score \
32 $fs/var/games
33 }
35 # Remove the original childsplay.score file and write the new one
36 post_install()
37 {
38 VARDIR="/var/games"
39 DATADIR="/usr/share/childsplay/Data"
40 SCOREFILE="childsplay.score"
41 if [ -f $VARDIR/$SCOREFILE ]
42 then
43 rm $DATADIR/$SCOREFILE
44 ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE
45 fi
46 }