wok-stable view childsplay-plugins-lfc/stuff/install.sh.patch @ rev 3373
Add: childsplay-plugins-lfc (0.90)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 21:23:13 2009 +0000 (2009-06-11) |
parents | |
children |
line source
1 --- childsplay_plugins_lfc-0.90/install.sh.orig Sat Aug 25 07:53:57 2007
2 +++ childsplay_plugins_lfc-0.90/install.sh Thu Jun 11 21:07:43 2009
3 @@ -8,8 +8,15 @@
4 # However, you can change the "prefix" to "/usr" and childsplay will still
5 # work. Set it to anything else and your on your own.
7 -PREFIX=/usr/local
8 +PREFIX=/usr
9 +PKG_PREFIX=$PWD/_pkg/usr
11 +# Create directories to install the package
12 +mkdir -p $PKG_PREFIX/lib/games/childsplay/lib
13 +mkdir -p $PKG_PREFIX/share/assetml
14 +mkdir -p $PKG_PREFIX/share/childsplay/Data/icons
15 +mkdir -p $PKG_PREFIX/share/childsplay/lib
16 +
17 #################################################################
18 # DON'T EDIT BEHIND THIS POINT
19 #################################################################
20 @@ -19,7 +26,7 @@
21 fi
23 LOCALEDIR=$PREFIX/share/locale
24 -ASSETMLDIR=/usr/share/assetml
25 +ASSETMLDIR=$PREFIX/share/assetml
26 PYTHON=`which python`
27 SCOREDIR=/var/games
28 DOCDIR=$PREFIX/share/doc/childsplay
29 @@ -30,10 +37,17 @@
30 SHARELIBDATADIR=$SHAREDIR/lib
31 SHAREDATADIR=$SHAREDIR/Data
33 +# package directories
34 +PKG_ASSETMLDIR=$PKG_PREFIX/share/assetml
35 +PKG_CPDIR=$PKG_PREFIX/lib/games/childsplay
36 +PKG_SHAREDIR=$PKG_PREFIX/share/childsplay
37 +PKG_SHARELIBDATADIR=$PKG_SHAREDIR/lib
38 +PKG_SHAREDATADIR=$PKG_SHAREDIR/Data
39 +
40 ##################################################
41 # Package text to be displayed as last step
42 # 0 = no readmes to display, 1 = there are readmes
43 -README=1
44 +README=0
45 # if README=1 then READMES=names of readmes in CWD
46 # like this READMES="README README2 README3"
47 READMES="README"
48 @@ -52,8 +66,8 @@
49 echo -e "\n>>>>>>>>>>> Install childsplay plugins >>>>>>>>>>>>>>>>>>>>"
50 echo -e "\n This release depends on childsplay version >= $DEPEN"
51 echo -n " Checking, version = "
52 -#CP=`which childsplay`
53 -CP=$BINDIR/childsplay
54 +CP=`which childsplay`
55 +#CP=$BINDIR/childsplay
56 VERSION=$($CP --version)
57 echo $VERSION
59 @@ -73,21 +87,21 @@
61 set -e
63 -echo -e "\n The path to install the plugins in is $CPDIR."
64 -echo " If you have installed childsplay in a other place, you can"
65 -echo " give the full path to childsplay, otherwise just hit enter"
66 -echo " Hit enter to install in $CPDIR, or give the full path"
67 -read path
68 -if [ $path ];then
69 - if [ -e $path/install.py ];then
70 - CPDIR=path
71 - else
72 - echo "*********** WARNING *************"
73 - echo " $path does not exists or is not the childsplay directory"
74 - echo " exit"
75 - exit 1
76 - fi
77 -fi
78 +# echo -e "\n The path to install the plugins in is $CPDIR."
79 +# echo " If you have installed childsplay in a other place, you can"
80 +# echo " give the full path to childsplay, otherwise just hit enter"
81 +# echo " Hit enter to install in $CPDIR, or give the full path"
82 +# read path
83 +# if [ $path ];then
84 +# if [ -e $path/install.py ];then
85 +# CPDIR=path
86 +# else
87 +# echo "*********** WARNING *************"
88 +# echo " $path does not exists or is not the childsplay directory"
89 +# echo " exit"
90 +# exit 1
91 +# fi
92 +# fi
93 echo " Installing in $CPDIR"
95 echo "Compiling modules to bytecode..."
96 @@ -97,16 +111,16 @@
97 for DIR in `ls $CWD/lib`
98 do
99 if [ -d $CWD/lib/$DIR ]
100 - then cp -rf $CWD/lib/$DIR $SHARELIBDATADIR
101 - else cp -f $CWD/lib/$DIR $CPDIR/lib
102 + then cp -rf $CWD/lib/$DIR $PKG_SHARELIBDATADIR
103 + else cp -f $CWD/lib/$DIR $PKG_CPDIR/lib
104 fi
105 done
107 echo " Copy misc. data files"
108 -cp -rf $CWD/Data/*.icon.png $SHAREDATADIR/icons/
109 +cp -rf $CWD/Data/*.icon.png $PKG_SHAREDATADIR/icons/
111 echo " Copy assetml files"
112 -cp -rf $CWD/assetml/* $ASSETMLDIR
113 +cp -rf $CWD/assetml/* $PKG_ASSETMLDIR
115 echo -e "\n Everything installed, enjoy\n"
116 echo -e "\n***************** IMPORTANT *************************"