wok-6.x view childsplay/stuff/INSTALL.sh.patch @ rev 16103
ARM: add dwm, dmenu, mpc, nmpc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 18 22:35:00 2014 +0100 (2014-03-18) |
parents | 1254f8783b56 |
children |
line source
1 --- INSTALL.sh.orig Thu Jan 17 14:38:56 2008
2 +++ INSTALL.sh Thu Jun 11 00:48:25 2009
3 @@ -8,7 +8,7 @@
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=$PWD/_pkg
10 #################################################################
11 # DON'T EDIT BEHIND THIS POINT
12 @@ -20,16 +20,16 @@
14 PYTHON=`which python`
16 -EXECDIR=$PREFIX/bin
17 -LOCALEDIR=$PREFIX/share/locale
18 -ASSETMLDIR=/usr/share/assetml
19 -SCOREDIR=/var/games
20 +EXECDIR=$PREFIX/usr/bin
21 +LOCALEDIR=$PREFIX/usr/share/locale
22 +ASSETMLDIR=$PREFIX/usr/share/assetml
23 +SCOREDIR=$PREFIX/var/games
24 SCOREFILE=$SCOREDIR/childsplay.score
25 -DOCDIR=$PREFIX/share/doc/childsplay
26 -MANDIR=$PREFIX/man/man6
27 -CPDIR=$PREFIX/lib/games/childsplay
28 -SHAREDIR=$PREFIX/share/childsplay
29 -BINDIR=$PREFIX/games
30 +DOCDIR=$PREFIX/usr/share/doc/childsplay
31 +MANDIR=$PREFIX/usr/man/man6
32 +CPDIR=$PREFIX/usr/lib/games/childsplay
33 +SHAREDIR=$PREFIX/usr/share/childsplay
34 +BINDIR=$PREFIX/usr/games
35 LIBDIR=$CPDIR/lib
36 MODULESDIR=$LIBDIR
37 SHARELIBDATADIR=$SHAREDIR/lib
38 @@ -39,21 +39,21 @@
39 HOME_DIR_NAME=.childsplay
40 CHILDSPLAYRC=childsplayrc
42 -OLDCPDIR=$PREFIX/games/childsplay
43 +OLDCPDIR=$PREFIX/usr/games/childsplay
45 echo "Making directorys"
46 -mkdir -vp $CPDIR
47 -mkdir -vp $CPDIR/lib
48 -mkdir -vp $DOCDIR
49 -mkdir -vp $LOCALEDIR
50 -mkdir -vp $ASSETMLDIR
51 -mkdir -vp $SCOREDIR
52 -mkdir -vp $MANDIR
53 -mkdir -vp $SHAREDIR
54 -mkdir -vp $SHAREDATADIR
55 -mkdir -vp $SHARELIBDATADIR
56 -mkdir -vp $BINDIR
57 -mkdir -vp $EXECDIR
58 +mkdir -p $CPDIR
59 +mkdir -p $CPDIR/lib
60 +mkdir -p $DOCDIR
61 +mkdir -p $LOCALEDIR
62 +mkdir -p $ASSETMLDIR
63 +mkdir -p $SCOREDIR
64 +mkdir -p $MANDIR
65 +mkdir -p $SHAREDIR
66 +mkdir -p $SHAREDATADIR
67 +mkdir -p $SHARELIBDATADIR
68 +mkdir -p $BINDIR
69 +mkdir -p $EXECDIR
71 set -e
73 @@ -128,24 +128,24 @@
74 # echo "found and removed"
75 #fi
77 -echo " Setting the base path in childsplay to $PREFIX"
78 +echo "Setting the base path in childsplay to /usr"
79 echo "## Automated file please do not edit" > $CPDIR/BASEPATH.py
80 -echo "BASEPATH=\"$PREFIX\"" >> $CPDIR/BASEPATH.py
81 -echo "EXECDIR=\"$EXECDIR\"" >> $CPDIR/BASEPATH.py
82 -echo "LOCALEDIR=\"$LOCALEDIR\"" >> $CPDIR/BASEPATH.py
83 -echo "ASSETMLDIR=\"$ASSETMLDIR\"" >> $CPDIR/BASEPATH.py
84 -echo "SCOREDIR=\"$SCOREDIR\"" >> $CPDIR/BASEPATH.py
85 -echo "SCOREFILE=\"$SCOREFILE\"" >> $CPDIR/BASEPATH.py
86 -echo "DOCDIR=\"$DOCDIR\"" >> $CPDIR/BASEPATH.py
87 -echo "MANDIR=\"$MANDIR\"" >> $CPDIR/BASEPATH.py
88 -echo "CPDIR=\"$CPDIR\"" >> $CPDIR/BASEPATH.py
89 -echo "SHAREDIR=\"$SHAREDIR\"" >> $CPDIR/BASEPATH.py
90 -echo "BINDIR=\"$BINDIR\"" >> $CPDIR/BASEPATH.py
91 -echo "LIBDIR=\"$LIBDIR\"" >> $CPDIR/BASEPATH.py
92 -echo "MODULESDIR=\"$MODULESDIR\"" >> $CPDIR/BASEPATH.py
93 -echo "SHARELIBDATADIR=\"$SHARELIBDATADIR\"" >> $CPDIR/BASEPATH.py
94 -echo "SHAREDATADIR=\"$SHAREDATADIR\"" >> $CPDIR/BASEPATH.py
95 -echo "RCDIR=\"$RCDIR\"" >> $CPDIR/BASEPATH.py
96 +echo "BASEPATH=\"/usr\"" >> $CPDIR/BASEPATH.py
97 +echo "EXECDIR=\"/usr/bin\"" >> $CPDIR/BASEPATH.py
98 +echo "LOCALEDIR=\"/usr/share/locale\"" >> $CPDIR/BASEPATH.py
99 +echo "ASSETMLDIR=\"/usr/share/assetml\"" >> $CPDIR/BASEPATH.py
100 +echo "SCOREDIR=\"/var/games\"" >> $CPDIR/BASEPATH.py
101 +echo "SCOREFILE=\"/var/games/childsplay.score\"" >> $CPDIR/BASEPATH.py
102 +echo "DOCDIR=\"/usr/share/doc/childsplay\"" >> $CPDIR/BASEPATH.py
103 +echo "MANDIR=\"/usr/man/man6\"" >> $CPDIR/BASEPATH.py
104 +echo "CPDIR=\"/usr/lib/games/childsplay\"" >> $CPDIR/BASEPATH.py
105 +echo "SHAREDIR=\"/usr/share/childsplay\"" >> $CPDIR/BASEPATH.py
106 +echo "BINDIR=\"/usr/games\"" >> $CPDIR/BASEPATH.py
107 +echo "LIBDIR=\"/usr/lib/games/childsplay/lib\"" >> $CPDIR/BASEPATH.py
108 +echo "MODULESDIR=\"/usr/lib/games/childsplay/lib\"" >> $CPDIR/BASEPATH.py
109 +echo "SHARELIBDATADIR=\"/usr/share/childsplay/lib\"" >> $CPDIR/BASEPATH.py
110 +echo "SHAREDATADIR=\"/usr/share/childsplay/Data\"" >> $CPDIR/BASEPATH.py
111 +echo "RCDIR=\"/usr/share/childsplay/lib/ConfigData\"" >> $CPDIR/BASEPATH.py
112 echo "CHILDSPLAYRC=\"$CHILDSPLAYRC\"" >> $CPDIR/BASEPATH.py
113 echo "HOME_DIR_NAME=\"$HOME_DIR_NAME\"" >> $CPDIR/BASEPATH.py
114 echo "" >> $CPDIR/BASEPATH.py
115 @@ -158,7 +158,7 @@
116 echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
117 echo " One thing left todo..."
118 echo " Translating words"
119 -$PYTHON $CPDIR/letters-trans.py $ASSETMLDIR
120 +$PYTHON $CPDIR/letters-trans.py $PREFIX/usr/share/assetml
121 echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
122 echo " Be sure to read the README-MEMORY file on how you can"
123 echo " use your own pictures in the memory game."