wok-current rev 3381

merge
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 12 02:27:35 2009 +0200 (2009-06-12)
parents f3100f10d443 6a152939d390
children ec9ebf2a2c46
files
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/childsplay-plugins-lfc/receipt	Fri Jun 12 02:27:35 2009 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="childsplay-plugins-lfc"
     1.7 +SOURCE="childsplay_plugins_lfc"
     1.8 +VERSION="0.90"
     1.9 +CATEGORY="games"
    1.10 +SHORT_DESC="Letter flash cards game for childsplay."
    1.11 +MAINTAINER="claudinei@slitaz.org"
    1.12 +TARBALL="$SOURCE-$VERSION.tgz"
    1.13 +WEB_SITE="http://www.childschool.org"
    1.14 +WGET_URL="$SF_MIRROR/childsplay/$TARBALL"
    1.15 +DEPENDS="python childsplay"
    1.16 +BUILD_DEPENDS="$DEPENDS"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	patch -p1 -i ../stuff/install.sh.patch	
    1.23 +	sh install.sh
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr $fs/usr/share
    1.30 +	cp -a $_pkg/usr/lib $fs/usr
    1.31 +	cp -a $_pkg/usr/share/assetml $fs/usr/share
    1.32 +	cp -a $_pkg/usr/share/childsplay $fs/usr/share
    1.33 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/childsplay-plugins-lfc/stuff/install.sh.patch	Fri Jun 12 02:27:35 2009 +0200
     2.3 @@ -0,0 +1,116 @@
     2.4 +--- childsplay_plugins_lfc-0.90/install.sh.orig	Sat Aug 25 07:53:57 2007
     2.5 ++++ childsplay_plugins_lfc-0.90/install.sh	Thu Jun 11 21:07:43 2009
     2.6 +@@ -8,8 +8,15 @@
     2.7 + # However, you can change the "prefix" to "/usr" and childsplay will still
     2.8 + # work. Set it to anything else and your on your own.
     2.9 +   
    2.10 +-PREFIX=/usr/local
    2.11 ++PREFIX=/usr
    2.12 ++PKG_PREFIX=$PWD/_pkg/usr
    2.13 + 
    2.14 ++# Create directories to install the package
    2.15 ++mkdir -p $PKG_PREFIX/lib/games/childsplay/lib
    2.16 ++mkdir -p $PKG_PREFIX/share/assetml
    2.17 ++mkdir -p $PKG_PREFIX/share/childsplay/Data/icons
    2.18 ++mkdir -p $PKG_PREFIX/share/childsplay/lib
    2.19 ++
    2.20 + #################################################################
    2.21 + # DON'T EDIT BEHIND THIS POINT 
    2.22 + #################################################################
    2.23 +@@ -19,7 +26,7 @@
    2.24 + fi
    2.25 + 
    2.26 + LOCALEDIR=$PREFIX/share/locale
    2.27 +-ASSETMLDIR=/usr/share/assetml
    2.28 ++ASSETMLDIR=$PREFIX/share/assetml
    2.29 + PYTHON=`which python`
    2.30 + SCOREDIR=/var/games
    2.31 + DOCDIR=$PREFIX/share/doc/childsplay
    2.32 +@@ -30,10 +37,17 @@
    2.33 + SHARELIBDATADIR=$SHAREDIR/lib
    2.34 + SHAREDATADIR=$SHAREDIR/Data
    2.35 + 
    2.36 ++# package directories
    2.37 ++PKG_ASSETMLDIR=$PKG_PREFIX/share/assetml
    2.38 ++PKG_CPDIR=$PKG_PREFIX/lib/games/childsplay
    2.39 ++PKG_SHAREDIR=$PKG_PREFIX/share/childsplay
    2.40 ++PKG_SHARELIBDATADIR=$PKG_SHAREDIR/lib
    2.41 ++PKG_SHAREDATADIR=$PKG_SHAREDIR/Data
    2.42 ++
    2.43 + ##################################################
    2.44 + #  Package text to be displayed as last step
    2.45 + # 0 = no readmes to display, 1 = there are readmes
    2.46 +-README=1
    2.47 ++README=0
    2.48 + # if README=1 then READMES=names of readmes in CWD
    2.49 + # like this READMES="README README2 README3"
    2.50 + READMES="README"
    2.51 +@@ -52,8 +66,8 @@
    2.52 + echo -e "\n>>>>>>>>>>> Install childsplay plugins >>>>>>>>>>>>>>>>>>>>"
    2.53 + echo -e "\n This release depends on childsplay version >= $DEPEN"
    2.54 + echo -n " Checking, version = "
    2.55 +-#CP=`which childsplay`
    2.56 +-CP=$BINDIR/childsplay
    2.57 ++CP=`which childsplay`
    2.58 ++#CP=$BINDIR/childsplay
    2.59 + VERSION=$($CP --version)
    2.60 + echo $VERSION
    2.61 + 
    2.62 +@@ -73,21 +87,21 @@
    2.63 + 
    2.64 + set -e
    2.65 + 
    2.66 +-echo -e "\n The path to install the plugins in is $CPDIR."
    2.67 +-echo " If you have installed childsplay in a other place, you can"
    2.68 +-echo " give the full path to childsplay, otherwise just hit enter"
    2.69 +-echo " Hit enter to install in $CPDIR, or give the full path"
    2.70 +-read path
    2.71 +-if [ $path ];then
    2.72 +-    if [ -e $path/install.py ];then
    2.73 +-        CPDIR=path
    2.74 +-    else
    2.75 +-        echo "*********** WARNING *************"
    2.76 +-        echo " $path does not exists or is not the childsplay directory"
    2.77 +-        echo " exit"
    2.78 +-        exit 1
    2.79 +-    fi
    2.80 +-fi
    2.81 ++# echo -e "\n The path to install the plugins in is $CPDIR."
    2.82 ++# echo " If you have installed childsplay in a other place, you can"
    2.83 ++# echo " give the full path to childsplay, otherwise just hit enter"
    2.84 ++# echo " Hit enter to install in $CPDIR, or give the full path"
    2.85 ++# read path
    2.86 ++# if [ $path ];then
    2.87 ++#     if [ -e $path/install.py ];then
    2.88 ++#         CPDIR=path
    2.89 ++#     else
    2.90 ++#         echo "*********** WARNING *************"
    2.91 ++#         echo " $path does not exists or is not the childsplay directory"
    2.92 ++#         echo " exit"
    2.93 ++#         exit 1
    2.94 ++#     fi
    2.95 ++# fi
    2.96 + echo " Installing in $CPDIR"
    2.97 + 
    2.98 + echo "Compiling modules to bytecode..."
    2.99 +@@ -97,16 +111,16 @@
   2.100 + for DIR in `ls $CWD/lib`
   2.101 + do 
   2.102 +     if [ -d $CWD/lib/$DIR ]
   2.103 +-	 then cp -rf $CWD/lib/$DIR $SHARELIBDATADIR
   2.104 +-	 else cp -f $CWD/lib/$DIR $CPDIR/lib
   2.105 ++	 then cp -rf $CWD/lib/$DIR $PKG_SHARELIBDATADIR
   2.106 ++	 else cp -f $CWD/lib/$DIR $PKG_CPDIR/lib
   2.107 +     fi
   2.108 + done
   2.109 + 
   2.110 + echo " Copy misc. data files"
   2.111 +-cp -rf $CWD/Data/*.icon.png $SHAREDATADIR/icons/
   2.112 ++cp -rf $CWD/Data/*.icon.png $PKG_SHAREDATADIR/icons/
   2.113 + 
   2.114 + echo " Copy assetml files"
   2.115 +-cp -rf $CWD/assetml/* $ASSETMLDIR
   2.116 ++cp -rf $CWD/assetml/* $PKG_ASSETMLDIR
   2.117 + 
   2.118 + echo -e "\n Everything installed, enjoy\n"
   2.119 + echo -e "\n***************** IMPORTANT *************************"