|
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 (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 (arab, vxp) |
435d7a |
if [ ! -e "${PREFIX}/pkglist.${PKG_BUILD_TYPE}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
435d7a |
touch "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
435d7a |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
435d7a |
echo "${PKG_NAME}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
|
|
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
|