Lines 16-21
Link Here
|
16 |
|
16 |
|
17 |
# For examples refer to ebuilds in rox-extra/ |
17 |
# For examples refer to ebuilds in rox-extra/ |
18 |
|
18 |
|
|
|
19 |
# need python to byte compile modules, if any |
20 |
inherit python |
19 |
|
21 |
|
20 |
if [ -z "$ROX_VER" ]; then |
22 |
if [ -z "$ROX_VER" ]; then |
21 |
ROX_VER="2.1.0" |
23 |
ROX_VER="2.1.0" |
Lines 38-44
Link Here
|
38 |
rox_src_compile() { |
40 |
rox_src_compile() { |
39 |
cd ${APPNAME} |
41 |
cd ${APPNAME} |
40 |
#Some packages need to be compiled. |
42 |
#Some packages need to be compiled. |
41 |
chmod 755 ./AppRun |
43 |
chmod a+x ./AppRun |
42 |
if [ -d "src/" ]; then |
44 |
if [ -d "src/" ]; then |
43 |
./AppRun --compile || die "Failed to compile the package" |
45 |
./AppRun --compile || die "Failed to compile the package" |
44 |
rm -rf src |
46 |
rm -rf src |
Lines 53-96
Link Here
|
53 |
fi |
55 |
fi |
54 |
insinto /usr/lib/rox |
56 |
insinto /usr/lib/rox |
55 |
doins -r ${APPNAME} |
57 |
doins -r ${APPNAME} |
56 |
#set correct permisions on files, in case they are wrong |
58 |
#set correct permissions on files, in case they are wrong |
57 |
chmod 755 ${D}/usr/lib/rox/${APPNAME}/AppRun |
59 |
#include all subdirectories in search, just in case |
58 |
chmod 755 ${D}/usr/lib/rox/${APPNAME}/AppletRun |
60 |
find ${D}/usr/lib/rox/${APPNAME} -name 'AppRun' | xargs chmod a+x >/dev/null 2>&1 |
|
|
61 |
find ${D}/usr/lib/rox/${APPNAME} -name 'AppletRun' | xargs chmod a+x >/dev/null 2>&1 |
59 |
|
62 |
|
60 |
# set permisions for programms where we have libdir script |
63 |
# set permissions for programs where we have libdir script |
61 |
if [ -f ${D}/usr/lib/rox/${APPNAME}/libdir ]; then |
64 |
if [ -f ${D}/usr/lib/rox/${APPNAME}/libdir ]; then |
62 |
chmod 755 ${D}/usr/lib/rox/${APPNAME}/libdir |
65 |
chmod a+x ${D}/usr/lib/rox/${APPNAME}/libdir |
63 |
fi |
66 |
fi |
64 |
|
67 |
|
65 |
# set permisiaon for programms where we have rox_run script (all who using rox-clib ) |
68 |
# set permissions for programs where we have rox_run script (all who using rox-clib ) |
66 |
if [ -f ${D}/usr/lib/rox/${APPNAME}/rox_run ]; then |
69 |
if [ -f ${D}/usr/lib/rox/${APPNAME}/rox_run ]; then |
67 |
chmod 755 ${D}/usr/lib/rox/${APPNAME}/rox_run |
70 |
chmod a+x ${D}/usr/lib/rox/${APPNAME}/rox_run |
68 |
fi |
71 |
fi |
69 |
|
72 |
|
70 |
# some programms have choice_install script |
73 |
# some programs have choice_install script |
71 |
if [ -f ${D}/usr/lib/rox/${APPNAME}/choice_install ]; then |
74 |
if [ -f ${D}/usr/lib/rox/${APPNAME}/choice_install ]; then |
72 |
chmod 755 ${D}/usr/lib/rox/${APPNAME}/choice_install |
75 |
chmod a+x ${D}/usr/lib/rox/${APPNAME}/choice_install |
73 |
fi |
76 |
fi |
74 |
|
77 |
|
75 |
# set permisions on all binares files for compiled programms per arch |
78 |
# set permissions on all binares files for compiled programs per arch |
76 |
if [ -n "$SET_PERM" ]; then |
79 |
if [ -n "$SET_PERM" ]; then |
77 |
ARCH="`uname -m`" |
80 |
ARCH="`uname -m`" |
78 |
case $ARCH in |
81 |
case $ARCH in |
79 |
i?86) ARCH=ix86 ;; |
82 |
i?86) ARCH=ix86 ;; |
80 |
esac |
83 |
esac |
81 |
PLATFORM="`uname -s`-$ARCH" |
84 |
PLATFORM="`uname -s`-$ARCH" |
82 |
chmod -R 755 ${D}/usr/lib/rox/${APPNAME}/${PLATFORM} |
85 |
chmod -R a+x ${D}/usr/lib/rox/${APPNAME}/${PLATFORM} |
83 |
fi |
86 |
fi |
84 |
|
87 |
|
85 |
#create a script in bin to run the application from command line |
88 |
#create a script in bin to run the application from command line |
86 |
dodir /usr/bin/ |
89 |
dodir /usr/bin/ |
87 |
echo "#!/bin/sh" > "${D}/usr/bin/${APPNAME}" |
90 |
cat >${D}/usr/bin/${APPNAME} <<EOF |
88 |
echo "exec /usr/lib/rox/${APPNAME}/AppRun \"\$@\"" >> "${D}/usr/bin/${APPNAME}" |
91 |
#!/bin/sh |
|
|
92 |
exec /usr/lib/rox/${APPNAME}/AppRun "\$@" |
93 |
EOF |
89 |
chmod a+x ${D}/usr/bin/${APPNAME} |
94 |
chmod a+x ${D}/usr/bin/${APPNAME} |
|
|
95 |
|
96 |
#now compile any and all python files |
97 |
python_mod_optimize $D/usr/lib/rox/${APPNAME} >/dev/null 2>&1 |
90 |
} |
98 |
} |
91 |
|
99 |
|
92 |
rox_pkg_postinst() { |
100 |
rox_pkg_postinst() { |
93 |
einfo "The $APPNAME has been installed into /usr/lib/rox" |
101 |
einfo "$APPNAME has been installed into /usr/lib/rox" |
94 |
einfo "You can run it by enter $APPNAME in command line or" |
102 |
einfo "You can run it by enter $APPNAME in command line or" |
95 |
einfo "can run it by pointing Rox file manage to that location" |
103 |
einfo "can run it by pointing Rox file manage to that location" |
96 |
einfo "and click on new application" |
104 |
einfo "and click on new application" |