|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
# . ./build.vars and set -o errexit are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
pkg_mksh_build() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
env CC="${PKG_CC_BUILD}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
CFLAGS="${PKG_CFLAGS_CONFIGURE} ${PKG_CFLAGS_BUILD}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
sh Build.sh;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
pkg_mksh_install() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
tar -cpf - mksh |\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
tar -C ${PREFIX_LVL}/bin -xpf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
if [ ! -f ${PREFIX_LVL}/etc/shells ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
mkdir -p ${PREFIX_LVL}/etc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
touch ${PREFIX_LVL}/etc/shells;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
if ! grep -xq "/bin/mksh" ${PREFIX_LVL}/etc/shells; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
echo /bin/mksh >> ${PREFIX_LVL}/etc/shells;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
if [ ! -d ${PREFIX_LVL}/share/doc/mksh/examples ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
mkdir -p ${PREFIX_LVL}/share/doc/mksh/examples;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
tar -cpf - dot.mkshrc |\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
tar -C ${PREFIX_LVL}/share/doc/mksh/examples -xpf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
if [ ! -d ${PREFIX_LVL}/share/man/man1 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
mkdir -p ${PREFIX_LVL}/share/man/man1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
tar -cpf - mksh.1 |\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
tar -C ${PREFIX_LVL}/share/man/man1 -xpf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c688c1 |
# vim:filetype=sh
|