|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
# set -o errexit -o noglob are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
f539a4 |
pkg_install() {
|
|
Lucio Andrés Illanes Albornoz |
9f1c89 |
local _pkglist_name="";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop mkdir "${PKG_PREFIX}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
79f0aa |
find "${PKG_DESTDIR}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b598a7 |
-type d -exec chmod 0755 {} \;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
79f0aa |
find "${PKG_DESTDIR}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22222c |
\( -not -perm /0111 \) \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
b598a7 |
-type f -exec chmod 0644 {} \;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
79f0aa |
find "${PKG_DESTDIR}" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
22222c |
-perm /0111 -type f -exec chmod 0755 {} \;;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
19ab70 |
tar -C "${PKG_DESTDIR}" -cpf - . |\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
71b9ce |
tar -C "${PKG_PREFIX}" --overwrite -xpf -;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
19ab70 |
if [ "${ARG_PACKAGE:-0}" -eq 1 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
19ab70 |
tar -C "${PKG_DESTDIR}" -cpf - . |\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
19ab70 |
gzip -c -9 - > "${PKG_BASE_DIR}/${PKG_NAME}.tgz"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
19ab70 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
ac2da3 |
if [ "${PKG_PKGLIST_DISABLE:-0}" -eq 0 ]; then
|
|
Lucio Andrés Illanes Albornoz |
d02931 |
if [ ! -e "${PREFIX}/pkglist.${PKG_BUILD_TYPE}" ]; then
|
|
Lucio Andrés Illanes Albornoz |
d02931 |
touch "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
|
|
Lucio Andrés Illanes Albornoz |
d02931 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
d02931 |
_pkglist_name="${PKG_BASE_DIR##*/}";
|
|
Lucio Andrés Illanes Albornoz |
d02931 |
_pkglist_name="${_pkglist_name%%-*}";
|
|
Lucio Andrés Illanes Albornoz |
d02931 |
echo "${_pkglist_name}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
435d7a |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# vim:filetype=sh
|